1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 03:10:56 +00:00
This commit is contained in:
“fudali113” 2016-07-20 15:33:30 +08:00
parent ec521ad166
commit 530c32017c

View File

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