smr/src/sql/insert_comment.sql

19 lines
210 B
SQL

/*
Add a new comment to a story
*/
INSERT INTO comments(
postid,
author,
isanon,
comment_text,
hashedip,
post_time
) VALUES (
:postid,
:authorid,
:isanon,
:comment_text,
'',
strftime('%s','now')
);