diff --git a/sql.go b/sql.go index 237924e..697e0f6 100644 --- a/sql.go +++ b/sql.go @@ -206,17 +206,17 @@ func insertMsgReport(objId int64, war_date int32, atk int32, def int32, exp int3 if objSubTypeId != objSubTypeMessageUnprocess { return errors.New("Message is not of type Unknown") } - - obj_id BIGINT UNSIGNED NOT NULL - ,war_date TIMESTAMP NOT NULL - ,attack SMALLINT UNSIGNED NOT NULL - ,defense SMALLINT UNSIGNED NOT NULL - ,gold SMALLINT UNSIGNED NOT NULL - ,stock MALLINT UNSIGNED NOT NULL - ,exp SMALLINT UNSIGNED NOT NULL - ,stamina TINYINT NOT NULL - ,crit TINYINT NOT NULL - + /* + obj_id BIGINT UNSIGNED NOT NULL + ,war_date TIMESTAMP NOT NULL + ,attack SMALLINT UNSIGNED NOT NULL + ,defense SMALLINT UNSIGNED NOT NULL + ,gold SMALLINT UNSIGNED NOT NULL + ,stock MALLINT UNSIGNED NOT NULL + ,exp SMALLINT UNSIGNED NOT NULL + ,stamina TINYINT NOT NULL + ,crit TINYINT NOT NULL + */ stmt, err := db.Prepare(`INSERT INTO obj_msg_report (obj_id, war_date, attack, defense, gold, stock, exp, stamina, crit) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?FROM_UNIXTIME(?), ?);`) if err != nil {