This commit is contained in:
shoopea 2019-05-11 13:46:39 +08:00
parent 9b842f347d
commit fba87e549d

2
sql.go
View File

@ -1279,7 +1279,7 @@ func getObjSubTypeId(objId int64) (int64, error) {
}
func setObjSubTypeId(objId int64, objSubTypeID64 int64) error {
stmt, err := db.Prepare(`UPDATE obj o SET o.obj_sub_type_id = ? WHERE o.id = ?l`)
stmt, err := db.Prepare(`UPDATE obj o SET o.obj_sub_type_id = ? WHERE o.id = ?;`)
logOnError(err, "setObjSubTypeId : prepare update")
if err != nil {
return err