bug fixed

This commit is contained in:
Lunny Xiao 2016-05-08 15:15:39 +08:00
parent 7f6463e46e
commit a01eeeddbc
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
xorm v0.5.4.0427 xorm v0.5.4.0508

View File

@ -159,7 +159,7 @@ func isStructZero(v reflect.Value) bool {
return false return false
} }
default: default:
if !isZero(field.Interface()) { if field.CanInterface() && !isZero(field.Interface()) {
return false return false
} }
} }

View File

@ -17,7 +17,7 @@ import (
const ( const (
// Version show the xorm's version // Version show the xorm's version
Version string = "0.5.4.0427" Version string = "0.5.4.0508"
) )
func regDrvsNDialects() bool { func regDrvsNDialects() bool {