Switched ID and Created fields of a reply in Exec().
This commit is contained in:
parent
121c3ff8fd
commit
8221da67eb
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user