From a01eeeddbcb6c70aa36369afb5b86ca199b31c68 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 8 May 2016 15:15:39 +0800 Subject: [PATCH] bug fixed --- VERSION | 2 +- helpers.go | 2 +- xorm.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {