This commit is contained in:
shoopea 2019-10-11 09:42:28 +08:00
parent 336b9322f0
commit c05af367a2

2
sql.go
View File

@ -585,6 +585,8 @@ func initDB() {
} }
func insertMsgItem(objId int64, itemId int64, quantity int64) error { func insertMsgItem(objId int64, itemId int64, quantity int64) error {
log.Println("insertMsgItem inserting (%d, %d, %d)", objId, itemId, quantity)
stmt, err := db.Prepare(`INSERT INTO obj_msg_item (obj_id, item_id, quantity) stmt, err := db.Prepare(`INSERT INTO obj_msg_item (obj_id, item_id, quantity)
VALUES (?, ?, ?);`) VALUES (?, ?, ?);`)
if err != nil { if err != nil {