From 660d6e73218229c6ac08ac2b7a19819169529fc8 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Fri, 12 Jan 2024 16:02:15 -0600 Subject: Start implementing search --- src/clog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/clog.c') diff --git a/src/clog.c b/src/clog.c index 5f41ce5..e27db22 100644 --- a/src/clog.c +++ b/src/clog.c @@ -490,8 +490,8 @@ int sql_update(const char *id, const char *title, const char *body) { } err = kore_pgsql_query_params( - &sql, q_update_entry, 0, 3, KORE_PGSQL_PARAM_TEXT(title), KORE_PGSQL_PARAM_TEXT(body), - KORE_PGSQL_PARAM_TEXT(id) + &sql, q_update_entry, 0, 4, KORE_PGSQL_PARAM_TEXT(title), KORE_PGSQL_PARAM_TEXT(body), + KORE_PGSQL_PARAM_TEXT(body), KORE_PGSQL_PARAM_TEXT(id) ); if (err == KORE_RESULT_ERROR) { kore_pgsql_logerror(&sql); -- cgit v1.2.3