diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2025-03-26 08:45:51 +0100 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2025-03-26 08:45:51 +0100 |
| commit | 12419dbf1ae643474388ab03f488e977b2f6d28c (patch) | |
| tree | 0f68594560e295142310a8ad88d7ee166d077f92 | |
| parent | 2e33acf80c2bd74b61acb05473740eacd7327ae3 (diff) | |
fixed syntax in sql query
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ void select_from_table(sqlite3 *db, char *tblName, char *qp) sql = "SELECT * FROM anime WHERE NAME LIKE ?1 ORDER BY ID;"; } else if (!strcmp(tblName, "manga")) { type = "Chapter"; - sql = "SELECT * manga WHERE NAME LIKE ?1 ORDER BY ID;"; + sql = "SELECT * FROM manga WHERE NAME LIKE ?1 ORDER BY ID;"; } else { fprintf(stderr, "table does not exist...\n"); sqlite3_close(db); |
