1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-29 10:01:30 +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{} var conflitValue interface{}
for i, v := range names { for i, v := range names {
marks[i] = "?" marks[i] = "?"
valueStr := argsMap[v] valueStr := argsMap[strings.ToLower(v)]
if v == args0 { if v == args0 {
conflitValue = values[i] conflitValue = values[i]
} }