update db.go

This commit is contained in:
“fudali113” 2016-07-26 14:27:22 +08:00
parent 4e10100575
commit cacf6cde19
1 changed files with 1 additions and 1 deletions

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]
}