diff --git a/VERSION b/VERSION index 98ef8831..dcab20e8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -xorm v0.6.0.1010 \ No newline at end of file +xorm v0.6.0.1016 \ No newline at end of file diff --git a/helpers.go b/helpers.go index e82a85f4..8158b924 100644 --- a/helpers.go +++ b/helpers.go @@ -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) diff --git a/xorm.go b/xorm.go index 04580e3f..61f05ecb 100644 --- a/xorm.go +++ b/xorm.go @@ -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 {