aboutsummaryrefslogtreecommitdiff
path: root/src/queries.h
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2024-01-12 15:17:14 -0600
committerMichael McVady <femtonaut@gmail.com>2024-01-12 15:17:14 -0600
commit7d9765df281da6ad6debe07b2047affec3ef2e17 (patch)
tree21fd35283ce1f6538a1129811a6f3a491379c84f /src/queries.h
parentf810fe19b8152a32254133680e3d6f506e2277e6 (diff)
Hack in edit
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 "