This commit is contained in:
parent
2c485665b0
commit
c1edc35c28
@ -129,7 +129,7 @@ namespace NeDvachAPI
|
|||||||
using (var command = new NpgsqlCommand(@"
|
using (var command = new NpgsqlCommand(@"
|
||||||
INSERT INTO dvach (post_id, post, post_timestamp)
|
INSERT INTO dvach (post_id, post, post_timestamp)
|
||||||
VALUES ( DEFAULT, @postText, (
|
VALUES ( DEFAULT, @postText, (
|
||||||
SELECT date_trunc('second', now()::timestamp(0)
|
SELECT date_trunc( 'second', now()::timestamp(0) )
|
||||||
) )", conn))
|
) )", conn))
|
||||||
{
|
{
|
||||||
command.Parameters.AddWithValue("postText", postToSend.Text);
|
command.Parameters.AddWithValue("postText", postToSend.Text);
|
||||||
|
Reference in New Issue
Block a user