This commit is contained in:
shoopea 2019-05-09 17:43:36 +08:00
parent 2cb2d3de33
commit 5c166184dd

2
sql.go
View File

@ -1228,7 +1228,7 @@ func getObjSubTypeId(objId int64) (int64, error) {
}
defer stmt.Close()
err = stmt.QueryRow(1).Scan(&objSubTypeId)
err = stmt.QueryRow(objId).Scan(&objSubTypeId)
if err != nil {
return 0, err
}