We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02d47d commit 493f9abCopy full SHA for 493f9ab
src/delete.c
@@ -207,10 +207,12 @@ Expr *sqlite3LimitWhere(
207
/* duplicate the FROM clause as it is needed by both the DELETE/UPDATE tree
208
** and the SELECT subtree. */
209
pSrc->a[0].pTab = 0;
210
- pSelectSrc = sqlite3SrcListDup(pParse->db, pSrc, 0);
+ pSelectSrc = sqlite3SrcListDup(db, pSrc, 0);
211
pSrc->a[0].pTab = pTab;
212
if( pSrc->a[0].fg.isIndexedBy ){
213
pSrc->a[0].u2.pIBIndex = 0;
214
+ pSrc->a[0].fg.isIndexedBy = 0;
215
+ sqlite3DbFree(db, pSrc->a[0].u1.zIndexedBy);
216
}else if( pSrc->a[0].fg.isCte ){
217
pSrc->a[0].u2.pCteUse->nUse++;
218
}
0 commit comments