From 56c355574d29546bbd5676d94dff48c8631a9fec Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Fri, 11 Apr 2025 20:32:55 +0200 Subject: removed ID from select query; was used for debugging --- dbhandling.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dbhandling.c') diff --git a/dbhandling.c b/dbhandling.c index 40ef42c..338d0c6 100644 --- a/dbhandling.c +++ b/dbhandling.c @@ -17,7 +17,6 @@ void select_from_table(sqlite3 *db, target_e target, char *qp) const unsigned char *name, *value, *status; const char *type; char *query_param = malloc(strlen(qp) + 2); - int id; switch (target) { case ANIME: @@ -45,11 +44,10 @@ void select_from_table(sqlite3 *db, target_e target, char *qp) sqlite3_bind_text(stmt, 1, query_param, -1, SQLITE_TRANSIENT); while(sqlite3_step(stmt) == SQLITE_ROW) { - id = sqlite3_column_int(stmt, 0); name = sqlite3_column_text(stmt, 1); value = sqlite3_column_text(stmt, 2); status = sqlite3_column_text(stmt, 3); - printf("%03d: %s, %s %s, %s\n", id, name, type, value, status); + printf("%s, %s %s, %s\n", name, type, value, status); found = 1; } -- cgit v1.2.3