Skip to content

Commit

Permalink
Check correct version for SQLITE_FCNTL_PERSIST_WAL
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed May 1, 2021
1 parent 7fb1632 commit 4f276ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cregistry/registry.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ int reg_close(reg_registry* reg, reg_error* errPtr) {
int reg_configure(reg_registry* reg) {
sqlite3_stmt* stmt = NULL;
int result = 0;
#if SQLITE_VERSION_NUMBER >= 3002000
#if SQLITE_VERSION_NUMBER >= 3022000
/* Ensure WAL files persist. */
int persist = 1;
sqlite3_file_control(reg->db, "registry", SQLITE_FCNTL_PERSIST_WAL, &persist);
Expand Down

0 comments on commit 4f276ab

Please sign in to comment.