aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/where.c')
-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