This commit is contained in:
shoopea 2019-05-06 10:57:20 +08:00
parent 496b26dd5c
commit 76a1911d63

2
sql.go
View File

@ -201,7 +201,7 @@ func getMsg(objId int64) (ChatWarsMessage, error) {
} }
defer stmt.Close() defer stmt.Close()
err = stmtOut.QueryRow(objId).Scan(&m.ID64, &m.ChatID64, &m.SenderUserID64, &m.Date, &m.Text) err = stmt.QueryRow(objId).Scan(&m.ID64, &m.ChatID64, &m.SenderUserID64, &m.Date, &m.Text)
if err != nil { if err != nil {
return m, err return m, err
} }