Skip to content

Commit c8a5006

Browse files
authored
Merge pull request #1880 from tursodatabase/lucio/fix-wal-misuse
sqlite3: fix missing pager causing SQLITE_MISUSE
2 parents 6ed1690 + aabea5f commit c8a5006

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libsql-ffi/bundled/SQLite3MultipleCiphers/src/sqlite3.c

+1
Original file line numberDiff line numberDiff line change
@@ -65363,6 +65363,7 @@ SQLITE_PRIVATE int sqlite3PagerWalInsert(Pager *pPager, unsigned int iFrame, voi
6536365363
pghdr.pExtra = NULL;
6536465364
pghdr.pgno = pgno;
6536565365
pghdr.flags = 0;
65366+
pghdr.pPager = pPager;
6536665367

6536765368
int isCommit = (nTruncate != 0);
6536865369

libsql-ffi/bundled/src/sqlite3.c

+1
Original file line numberDiff line numberDiff line change
@@ -65363,6 +65363,7 @@ SQLITE_PRIVATE int sqlite3PagerWalInsert(Pager *pPager, unsigned int iFrame, voi
6536365363
pghdr.pExtra = NULL;
6536465364
pghdr.pgno = pgno;
6536565365
pghdr.flags = 0;
65366+
pghdr.pPager = pPager;
6536665367

6536765368
int isCommit = (nTruncate != 0);
6536865369

libsql-sqlite3/src/pager.c

+1
Original file line numberDiff line numberDiff line change
@@ -7852,6 +7852,7 @@ int sqlite3PagerWalInsert(Pager *pPager, unsigned int iFrame, void *pBuf, unsign
78527852
pghdr.pExtra = NULL;
78537853
pghdr.pgno = pgno;
78547854
pghdr.flags = 0;
7855+
pghdr.pPager = pPager;
78557856

78567857
int isCommit = (nTruncate != 0);
78577858

0 commit comments

Comments
 (0)