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

The pushDownWhereTerms() routine should be using

sqlite3ExprIsTableConstraint(), not sqlite3ExprIsTableConstant().  This fixes
many problems, but still an error persists in join7.test.

FossilOrigin-Name: 10bf0e613809f71cc1a47ad40b517e2a66671212a6464e179c9d377e8b70d499
This commit is contained in:
drh
2022-04-25 20:38:42 +00:00
parent a9cdb90421
commit 5eb6e09795
3 changed files with 8 additions and 8 deletions

View File

@@ -5007,7 +5007,7 @@ static int pushDownWhereTerms(
}
#endif
if( sqlite3ExprIsTableConstant(pWhere, pSrc->iCursor) ){
if( sqlite3ExprIsTableConstraint(pWhere, pSrc) ){
nChng++;
pSubq->selFlags |= SF_PushDown;
while( pSubq ){