From cacf6cde194d909c1c307c0a2f1c284b3943bd9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cfudali113=E2=80=9D?= <“fudali113@gmail.com”> Date: Tue, 26 Jul 2016 14:27:22 +0800 Subject: [PATCH] update db.go --- orm/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/db.go b/orm/db.go index 92b6cfe8..ec23e383 100644 --- a/orm/db.go +++ b/orm/db.go @@ -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] }