1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-15 12:33:32 +00:00

Update db.go

This commit is contained in:
GeorgeXc 2019-03-26 01:00:04 +08:00 committed by GitHub
parent 005391be81
commit 0b8ebaf387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)