This commit is contained in:
parent
218484a0f1
commit
2c485665b0
@ -127,8 +127,10 @@ namespace NeDvachAPI
|
||||
conn.Open();
|
||||
|
||||
using (var command = new NpgsqlCommand(@"
|
||||
INSERT INTO dvach " + @"(post_id, post, post_timestamp)
|
||||
VALUES (DEFAULT, @postText, ( SELECT date_trunc('second', now()::timestamp(0) ) )", conn))
|
||||
INSERT INTO dvach (post_id, post, post_timestamp)
|
||||
VALUES ( DEFAULT, @postText, (
|
||||
SELECT date_trunc('second', now()::timestamp(0)
|
||||
) )", conn))
|
||||
{
|
||||
command.Parameters.AddWithValue("postText", postToSend.Text);
|
||||
//command.Parameters.AddWithValue("postTimeStamp", DateTime.Now.ToString("dd/MM/yyyy HH:mm"));
|
||||
|
Reference in New Issue
Block a user