1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 18:20:50 +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 {
setNames = append(setNames[0:index], setNames[index+1:]...)
setValues = append(setValues[0:index], setValues[index+1:]...)
}
setValues = append(setValues, pkValue)