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

Do not use a transitive constraint to an IN operator where the RHS is a

constant if there exists a direct == operator to another table in an outer
loop.

FossilOrigin-Name: faedaeace9c7ed9a8aaf96700caee09db0c0c061
This commit is contained in:
drh
2013-05-01 17:58:35 +00:00
parent 5c10f3b38e
commit a309552e2c
3 changed files with 8 additions and 8 deletions

View File

@@ -705,7 +705,7 @@ static WhereTerm *findTerm(
continue;
}
}
if( pTerm->prereqRight==0 ){
if( pTerm->prereqRight==0 && (pTerm->eOperator&WO_EQ)!=0 ){
pResult = pTerm;
goto findTerm_success;
}else if( pResult==0 ){