fix
This commit is contained in:
parent
61faf48303
commit
f60cfce4c5
2
sql.go
2
sql.go
@ -79,7 +79,7 @@ func initDB() {
|
|||||||
log.Println("Database set up")
|
log.Println("Database set up")
|
||||||
}
|
}
|
||||||
|
|
||||||
func putMsg(m *ChatWarsMessage) {
|
func putMsg(m ChatWarsMessage) {
|
||||||
stmt, err := db.Prepare(`INSERT INTO msg (id, user_id, direction, date, text)
|
stmt, err := db.Prepare(`INSERT INTO msg (id, user_id, direction, date, text)
|
||||||
VALUES (?, ?, ?, FROM_UNIXTIME(?), ?);`)
|
VALUES (?, ?, ?, FROM_UNIXTIME(?), ?);`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user