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:
parent
4e10100575
commit
cacf6cde19
@ -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]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user