aboutsummaryrefslogtreecommitdiff
path: root/src/queries.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/queries.h')
-rw-r--r--src/queries.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/queries.h b/src/queries.h
index 3956129..1246091 100644
--- a/src/queries.h
+++ b/src/queries.h
@@ -22,11 +22,11 @@ const char *q_select_entries =
// "($1, $2, $3) "
// "RETURNING id;";
-// const char *q_update_entry =
-// "UPDATE entries "
-// "SET title = $1, body = $2, updated_at = NOW() "
-// "WHERE id = $3 "
-// "RETURNING id;";
+const char *q_update_entry =
+"UPDATE entries "
+"SET title = $1, body = $2, updated_at = NOW() "
+"WHERE id = $3 "
+"RETURNING id;";
// const char *q_delete_entry =
// "DELETE "