Fix missing quotes in db version fetch

This commit is contained in:
Lucas Verney 2016-07-30 15:03:48 +02:00
parent f60252537a
commit 205361e505

View File

@ -42,7 +42,7 @@ int main(int argc, char** argv) {
sqlite3_close(dbh);
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) {
fprintf(stderr, "Error while fetching data in db: %s\n\n", sqlite3_errmsg(dbh));
sqlite3_close(dbh);