bug fixed

This commit is contained in:
Lunny Xiao 2014-04-23 14:01:53 +08:00
parent a4d3be797f
commit 129f77f43c
1 changed files with 1 additions and 1 deletions

View File

@ -3314,7 +3314,7 @@ func genCols(table *core.Table, session *Session, bean interface{}, useCol bool,
}
if (col.IsCreated || col.IsUpdated) && session.Statement.UseAutoTime {
args = append(args, time.Now())
args = append(args, session.Engine.NowTime(col.SQLType.Name))
} else if col.IsVersion && session.Statement.checkVersion {
args = append(args, 1)
} else {