1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:30:54 +00:00

update db.go

This commit is contained in:
“fudali113” 2016-07-26 14:27:22 +08:00
parent 4e10100575
commit cacf6cde19

View File

@ -532,7 +532,7 @@ func (d *dbBase) InsertOrUpdate(q dbQuerier, mi *modelInfo, ind reflect.Value, a
var conflitValue interface{}
for i, v := range names {
marks[i] = "?"
valueStr := argsMap[v]
valueStr := argsMap[strings.ToLower(v)]
if v == args0 {
conflitValue = values[i]
}