From b39d0cd944ce0bb9dc3c4f3572859a8bb1cf2e99 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 2 Jun 2019 14:54:18 +0800 Subject: [PATCH] test --- obj.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obj.go b/obj.go index be32fa3..3d7d187 100644 --- a/obj.go +++ b/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()