From 370294ddb80163578bb34c28c3be63d9fb2ec66d Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 3 Aug 2023 14:32:52 +0200 Subject: [PATCH] fix get_nth_id sql --- include/stmt.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/stmt.h b/include/stmt.h index fb52300..09ab864 100644 --- a/include/stmt.h +++ b/include/stmt.h @@ -30,8 +30,7 @@ static const char dump_stmt[] = static sqlite3_stmt* get_nth_id_stmt; static const char get_nth_id_stmt_template[] = "SELECT rowid " - "FROM projects " - "WHERE" - "LIMIT 1 " - "OFFSET ?;" + "FROM project " + "LIMIT 1 " + "OFFSET ?;" ;