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

Avoid redundant constraint checking due to transitive constraints.

FossilOrigin-Name: 329478cbed06f93652de50abdb31a6b41af02b9e
This commit is contained in:
drh
2013-05-01 17:22:38 +00:00
parent 9a1eccb621
commit 5c10f3b38e
3 changed files with 8 additions and 7 deletions

View File

@@ -4883,6 +4883,7 @@ static Bitmask codeOneLoopStart(
assert( (pTerm->prereqRight & newNotReady)!=0 );
pAlt = findTerm(pWC, iCur, pTerm->u.leftColumn, notReady, WO_EQ|WO_IN, 0);
if( pAlt==0 ) continue;
if( pAlt->wtFlags & (TERM_CODED) ) continue;
VdbeNoopComment((v, "begin transitive constraint"));
sEq = *pAlt->pExpr;
sEq.pLeft = pE->pLeft;