test
This commit is contained in:
parent
d745613664
commit
01d5ce3f2b
4
sql.go
4
sql.go
@ -206,7 +206,7 @@ func insertMsgReport(objId int64, war_date int32, atk int32, def int32, exp int3
|
|||||||
if objSubTypeId != objSubTypeMessageUnprocess {
|
if objSubTypeId != objSubTypeMessageUnprocess {
|
||||||
return errors.New("Message is not of type Unknown")
|
return errors.New("Message is not of type Unknown")
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
obj_id BIGINT UNSIGNED NOT NULL
|
obj_id BIGINT UNSIGNED NOT NULL
|
||||||
,war_date TIMESTAMP NOT NULL
|
,war_date TIMESTAMP NOT NULL
|
||||||
,attack SMALLINT UNSIGNED NOT NULL
|
,attack SMALLINT UNSIGNED NOT NULL
|
||||||
@ -216,7 +216,7 @@ func insertMsgReport(objId int64, war_date int32, atk int32, def int32, exp int3
|
|||||||
,exp SMALLINT UNSIGNED NOT NULL
|
,exp SMALLINT UNSIGNED NOT NULL
|
||||||
,stamina TINYINT NOT NULL
|
,stamina TINYINT NOT NULL
|
||||||
,crit 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)
|
stmt, err := db.Prepare(`INSERT INTO obj_msg_report (obj_id, war_date, attack, defense, gold, stock, exp, stamina, crit)
|
||||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?FROM_UNIXTIME(?), ?);`)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?FROM_UNIXTIME(?), ?);`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user