This commit is contained in:
shoopea 2020-04-18 21:09:57 +08:00
parent aa34353a9e
commit e9731146b0

2
obj.go
View File

@ -267,7 +267,7 @@ func setObjSubTypeId(objId int64, objSubTypeID64 int64) error {
func objAddName(objID64 int64, name string) error {
var priority int64
stmt, err := db.Prepare(`SELECT COUNT(*) FROM obj_name on WHERE on.obj_id = ?`)
stmt, err := db.Prepare(`SELECT COUNT(*) FROM obj_name obn WHERE obn.obj_id = ?`)
if err != nil {
return err
}