Whoopsie
This commit is contained in:
parent
94523eeba9
commit
46cfc59e07
|
@ -24,11 +24,7 @@ sub get_posts($self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub create_post($self, $name, $message) {
|
sub create_post($self, $name, $message) {
|
||||||
$self->pg->db->query(
|
$self->pg-db->query(<<~'END_SQL', $name, $message)
|
||||||
'INSERT INTO messages (message_date, visitor_name, message)
|
|
||||||
VALUES (NOW(), ?, ?);', $name, $message
|
|
||||||
);
|
|
||||||
$self->pg-db->query(<<~'END_SQL', $name, $message);
|
|
||||||
INSERT INTO messages (message_date, visitor_name, message)
|
INSERT INTO messages (message_date, visitor_name, message)
|
||||||
VALUES (NOW(), ?, ?);
|
VALUES (NOW(), ?, ?);
|
||||||
END_SQL
|
END_SQL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user