From 7d9765df281da6ad6debe07b2047affec3ef2e17 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Fri, 12 Jan 2024 15:17:14 -0600 Subject: Hack in edit --- src/queries.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/queries.h') 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 " -- cgit v1.2.3