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
1 changed files with 0 additions and 1 deletions

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)