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

Rename sqlite3IsTableConstraint() to sqlite3IsSingleTableConstraint() and

improve its header comment, in an attempt to make the code easier to reason
about.  No functional changes - should generate identical machine code.

FossilOrigin-Name: 5dae897431a0a9dbb354c4a8a48f935ea7438035d96f90b83dd81eae434c8277
This commit is contained in:
drh
2023-05-10 11:05:59 +00:00
parent d733ee5cca
commit 5af043c2e7
6 changed files with 22 additions and 18 deletions

View File

@@ -5222,7 +5222,7 @@ static int pushDownWhereTerms(
}
}
#if 0 /* Legacy code. Checks now done by sqlite3ExprIsTableConstraint() */
#if 0 /* These checks now done by sqlite3ExprIsSingleTableConstraint() */
if( isLeftJoin
&& (ExprHasProperty(pWhere,EP_OuterON)==0
|| pWhere->w.iJoin!=iCursor)
@@ -5236,7 +5236,7 @@ static int pushDownWhereTerms(
}
#endif
if( sqlite3ExprIsTableConstraint(pWhere, pSrc) ){
if( sqlite3ExprIsSingleTableConstraint(pWhere, pSrc) ){
nChng++;
pSubq->selFlags |= SF_PushDown;
while( pSubq ){