diff --git a/VERSION b/VERSION index 7038453c..3503add4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -xorm v0.5.4.0427 +xorm v0.5.4.0508 diff --git a/helpers.go b/helpers.go index 617e8d7a..5fdef5bf 100644 --- a/helpers.go +++ b/helpers.go @@ -159,7 +159,7 @@ func isStructZero(v reflect.Value) bool { return false } default: - if !isZero(field.Interface()) { + if field.CanInterface() && !isZero(field.Interface()) { return false } } diff --git a/xorm.go b/xorm.go index 0fdae547..f2f034af 100644 --- a/xorm.go +++ b/xorm.go @@ -17,7 +17,7 @@ import ( const ( // Version show the xorm's version - Version string = "0.5.4.0427" + Version string = "0.5.4.0508" ) func regDrvsNDialects() bool {