No-Intro: Make sure to commit pending transactions
Jeffrey Pfau jeffrey@endrift.com
Wed, 11 Jan 2017 23:12:23 -0800
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/feature/sqlite3/no-intro.c
→
src/feature/sqlite3/no-intro.c
@@ -266,6 +266,9 @@
sqlite3_finalize(gameTable); sqlite3_finalize(romTable); + if (remainingInTransaction) { + sqlite3_exec(db->db, "COMMIT;", NULL, NULL, NULL); + } sqlite3_exec(db->db, "VACUUM", NULL, NULL, NULL); return true;