1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Fix a problem involving "DELETE/UPDATE...LIMIT" statements that use an INDEXED

BY clause.

FossilOrigin-Name: 09f94c2c8199b0d23a45cc062ca9561f9e5ddfcba117100e41889ce199d21bdb
This commit is contained in:
dan
2017-11-10 16:14:26 +00:00
parent 26caf5bef1
commit ca3e3c3f1a
4 changed files with 79 additions and 30 deletions

View File

@@ -202,6 +202,7 @@ Expr *sqlite3LimitWhere(
pSrc->a[0].pTab = 0;
pSelectSrc = sqlite3SrcListDup(pParse->db, pSrc, 0);
pSrc->a[0].pTab = pTab;
pSrc->a[0].pIBIndex = 0;
/* generate the SELECT expression tree. */
pSelect = sqlite3SelectNew(pParse, pEList, pSelectSrc, pWhere, 0 ,0,