This commit is contained in:
shoopea 2019-06-02 15:01:04 +08:00
parent 213474937f
commit 887226ccf9

2
obj.go
View File

@ -449,7 +449,7 @@ func addObjItem(name string, code string, itemTypeID64 int64, weight int) (int64
}
res, err := tx.Exec(`INSERT INTO obj (obj_type_id, obj_sub_type_id)
VALUES (` + strconv.Itoa(objTypeItem) + `,` + fmt.sprintf("%d", itemTypeID64) + `);`)
VALUES (` + strconv.Itoa(objTypeItem) + `,` + fmt.Sprintf("%d", itemTypeID64) + `);`)
logOnError(err, "addObjItem : exec insert obj")
if err != nil {
err2 := tx.Rollback()