mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:40:55 +00:00
Update db.go
This commit is contained in:
parent
005391be81
commit
0b8ebaf387
@ -633,7 +633,6 @@ func (d *dbBase) Update(q dbQuerier, mi *modelInfo, ind reflect.Value, tz *time.
|
|||||||
if find {
|
if find {
|
||||||
setNames = append(setNames[0:index], setNames[index+1:]...)
|
setNames = append(setNames[0:index], setNames[index+1:]...)
|
||||||
setValues = append(setValues[0:index], setValues[index+1:]...)
|
setValues = append(setValues[0:index], setValues[index+1:]...)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setValues = append(setValues, pkValue)
|
setValues = append(setValues, pkValue)
|
||||||
|
Loading…
Reference in New Issue
Block a user