1
0

Switched ID and Created fields of a reply in Exec().

This commit is contained in:
Alexander Andreev 2022-10-21 04:28:55 +04:00
parent 121c3ff8fd
commit 8221da67eb
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -228,7 +228,7 @@ func (d *SQLiteDatabase) NewReply(reply *guestbook.Reply) (err error) {
} }
defer tx.Rollback() defer tx.Rollback()
_, err = tx.Stmt(stmtNewReply).Exec(reply.Created, reply.ID, reply.Message) _, err = tx.Stmt(stmtNewReply).Exec(reply.ID, reply.Created, reply.Message)
if err != nil { if err != nil {
return return
} }