1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-19 21:43:15 +03:00

Fix to the logic that disables constraints on virtual tables.

FossilOrigin-Name: 62d382406b28c1347e13114f42215939ddfd7a9d
This commit is contained in:
drh
2013-06-03 16:03:16 +00:00
parent 3a5ba8b1b7
commit 5298630631
3 changed files with 8 additions and 8 deletions

View File

@@ -4326,7 +4326,7 @@ static int whereLoopAddVirtual(
pNew->prereq |= pTerm->prereqRight;
pNew->aTerm[iTerm] = pTerm;
if( iTerm>mxTerm ) mxTerm = iTerm;
if( iTerm<16 && pUsage[i].omit ) pNew->u.vtab.omitMask |= 1<<i;
if( iTerm<16 && pUsage[i].omit ) pNew->u.vtab.omitMask |= 1<<iTerm;
if( (pTerm->eOperator & WO_IN)!=0 ){
if( pUsage[i].omit==0 ){
/* Do not attempt to use an IN constraint if the virtual table