aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-03-10 01:10:28 +0000
committerdrh <>2022-03-10 01:10:28 +0000
commit6a51e70c5fb683a1f9c390da5ff7fe5eeaf99676 (patch)
tree45c3cd330f31510894fe2ecaf9d5ecce08ed81f0 /src
parent6563d0c11a59e2487c8b05fc0ea9a4517b27afbc (diff)
downloadsqlite-6a51e70c5fb683a1f9c390da5ff7fe5eeaf99676.tar.gz
sqlite-6a51e70c5fb683a1f9c390da5ff7fe5eeaf99676.zip
Check-in [642a0b4752743216] fixing sqlite_dbpage is not exactly correct.
This patch should fix it. FossilOrigin-Name: 6ba36714ca5e5457bc424273129f2814b62b7fae38926aa6eeeeec81020d7f70
Diffstat (limited to 'src')
-rw-r--r--src/where.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/where.c b/src/where.c
index 6705c4d36..ca4ce3d80 100644
--- a/src/where.c
+++ b/src/where.c
@@ -3785,9 +3785,9 @@ int sqlite3_vtab_distinct(sqlite3_index_info *pIdxInfo){
void sqlite3VtabWriteAll(sqlite3_index_info *pIdxInfo){
HiddenIndexInfo *pHidden = (HiddenIndexInfo*)&pIdxInfo[1];
Parse *pParse = pHidden->pParse;
- Parse *pTopLevel = sqlite3ParseToplevel(pParse);
- pTopLevel->cookieMask =
- pTopLevel->writeMask = (((u64)1) << pParse->db->nDb) - 1;
+ int nDb = pParse->db->nDb;
+ int i;
+ for(i=0; i<nDb; i++) sqlite3BeginWriteOperation(pParse, 0, i);
}
#endif