test
This commit is contained in:
parent
19858516cc
commit
b39d0cd944
2
obj.go
2
obj.go
@ -448,7 +448,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) + `,` + strconv.Itoa(itemTypeID64) + `);`)
|
||||
VALUES (` + strconv.Itoa(objTypeItem) + `,` + fmt.sprintf("%d", itemTypeID64) + `);`)
|
||||
logOnError(err, "addObjItem : exec insert obj")
|
||||
if err != nil {
|
||||
err2 := tx.Rollback()
|
||||
|
Loading…
Reference in New Issue
Block a user