Fix missing quotes in db version fetch
This commit is contained in:
parent
f60252537a
commit
205361e505
@ -42,7 +42,7 @@ int main(int argc, char** argv) {
|
|||||||
sqlite3_close(dbh);
|
sqlite3_close(dbh);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
dberr = sqlite3_exec(dbh, "SELECT value FROM metadata WHERE name=version", NULL, NULL, NULL);
|
dberr = sqlite3_exec(dbh, "SELECT value FROM metadata WHERE name='version'", NULL, NULL, NULL);
|
||||||
if (SQLITE_OK != dberr) {
|
if (SQLITE_OK != dberr) {
|
||||||
fprintf(stderr, "Error while fetching data in db: %s\n\n", sqlite3_errmsg(dbh));
|
fprintf(stderr, "Error while fetching data in db: %s\n\n", sqlite3_errmsg(dbh));
|
||||||
sqlite3_close(dbh);
|
sqlite3_close(dbh);
|
||||||
|
Loading…
Reference in New Issue
Block a user