From c7811f5e359ed6a17f47b4302c9430af2c0b8ab1 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 25 Jun 2020 19:28:25 +0200 Subject: [PATCH] test --- sql.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sql.go b/sql.go index cf903ca..79a75c0 100644 --- a/sql.go +++ b/sql.go @@ -258,7 +258,7 @@ func initDB() { ,item_id BIGINT UNSIGNED ,cond VARCHAR(32) ,quality VARCHAR(32) - ,mod VARCHAR(80) + ,modifiers VARCHAR(80) ,seller_castle_id BIGINT UNSIGNED ,seller_guild_id BIGINT UNSIGNED ,seller_id BIGINT UNSIGNED @@ -862,8 +862,8 @@ func insertMsgAuctionAnnounce(m *ChatWarsMessageAuctionAnnounce) error { return errors.New("Message type mismatch") } - stmt, err := db.Prepare(`INSERT INTO obj_msg_auction_announce (obj_id, lot_id, item_id, cond, quality, mod, seller_id, seller_guild_id, seller_castle_id, buyer_id, buyer_guild_id, buyer_castle_id, price, status, end) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);`) + stmt, err := db.Prepare(`INSERT INTO obj_msg_auction_announce (obj_id, lot_id, item_id, cond, quality, modifiers, seller_id, seller_guild_id, seller_castle_id, buyer_id, buyer_guild_id, buyer_castle_id, price, status, end) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);`) if err != nil { return err }