Merge pull request #10 from go-xorm/master

bug fixed
This commit is contained in:
S.W.H 2014-04-19 20:59:53 +08:00
commit e3041f8706
1 changed files with 1 additions and 1 deletions

View File

@ -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