commit
e3041f8706
|
@ -2871,7 +2871,7 @@ func (session *Session) Update(bean interface{}, condiBean ...interface{}) (int6
|
||||||
|
|
||||||
if session.Statement.UseAutoTime && table.Updated != "" {
|
if session.Statement.UseAutoTime && table.Updated != "" {
|
||||||
colNames = append(colNames, session.Engine.Quote(table.Updated)+" = ?")
|
colNames = append(colNames, session.Engine.Quote(table.Updated)+" = ?")
|
||||||
args = append(args, session.Engine.NowTime(table.Columns[table.Updated].SQLType.Name))
|
args = append(args, session.Engine.NowTime(table.Columns[strings.ToLower(table.Updated)].SQLType.Name))
|
||||||
}
|
}
|
||||||
|
|
||||||
var condiColNames []string
|
var condiColNames []string
|
||||||
|
|
Loading…
Reference in New Issue