1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 10:00:41 +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

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)