diff options
author | drh <> | 2023-05-10 11:05:59 +0000 |
---|---|---|
committer | drh <> | 2023-05-10 11:05:59 +0000 |
commit | 5af043c2e7a585da4b727cb8d3589f23de3ff2b6 (patch) | |
tree | e323ff8550d23f355ba8e2074d3a45a8fecc6cce /src/select.c | |
parent | d733ee5cca2dbad91f99a193cb1d41e94e983df9 (diff) | |
download | sqlite-5af043c2e7a585da4b727cb8d3589f23de3ff2b6.tar.gz sqlite-5af043c2e7a585da4b727cb8d3589f23de3ff2b6.zip |
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
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c index 079158b4d..43dec7d20 100644 --- a/src/select.c +++ b/src/select.c @@ -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 ){ |