This commit is contained in:
Lunny Xiao 2016-10-16 20:53:03 +08:00
parent 539f1099db
commit e653751f49
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
xorm v0.6.0.1010
xorm v0.6.0.1016

View File

@ -550,7 +550,7 @@ func genCols(table *core.Table, session *Session, bean interface{}, useCol bool,
}
}
if (col.IsCreated || col.IsUpdated) && session.Statement.UseAutoTime && !isZero(fieldValue.Interface()) {
if (col.IsCreated || col.IsUpdated) && session.Statement.UseAutoTime && isZero(fieldValue.Interface()) {
// if time is non-empty, then set to auto time
val, t := session.Engine.NowTime2(col.SQLType.Name)
args = append(args, val)

View File

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