mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Add a missing test that prevented double LEFT JOINs with transitive
constraints from working correctly. Fix for ticket [868145d012]. FossilOrigin-Name: 72919ec34f0d663d551c1070285ad93b932bcb74
This commit is contained in:
@@ -3887,6 +3887,7 @@ static Bitmask codeOneLoopStart(
|
||||
if( pTerm->wtFlags & (TERM_VIRTUAL|TERM_CODED) ) continue;
|
||||
if( pTerm->eOperator!=(WO_EQUIV|WO_EQ) ) continue;
|
||||
if( pTerm->leftCursor!=iCur ) continue;
|
||||
if( pLevel->iLeftJoin ) continue;
|
||||
pE = pTerm->pExpr;
|
||||
assert( !ExprHasProperty(pE, EP_FromJoin) );
|
||||
assert( (pTerm->prereqRight & newNotReady)!=0 );
|
||||
|
||||
Reference in New Issue
Block a user