diff options
author | drh <> | 2024-04-06 12:19:50 +0000 |
---|---|---|
committer | drh <> | 2024-04-06 12:19:50 +0000 |
commit | de6a4be9b58f8f4058aaaf4c7c1283f811cc8fce (patch) | |
tree | 4eeb1f2720404d0803d586664487639366e36fbe /src/sqliteInt.h | |
parent | 743ae4c68b51fe56e6a269a79532224d2e45ce12 (diff) | |
download | sqlite-de6a4be9b58f8f4058aaaf4c7c1283f811cc8fce.tar.gz sqlite-de6a4be9b58f8f4058aaaf4c7c1283f811cc8fce.zip |
Generalize pushdown to allow any uncorrelated subquery to be pushed down.
FossilOrigin-Name: 87c45fb0d5f5ca5d6d1ad27bef83f294231d17d94299e1997364a7975b423e38
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index 29acb570d..a735c445e 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -3585,7 +3585,7 @@ struct Select { #define SF_CopyCte 0x4000000 /* SELECT statement is a copy of a CTE */ #define SF_OrderByReqd 0x8000000 /* The ORDER BY clause may not be omitted */ #define SF_UpdateFrom 0x10000000 /* Query originates with UPDATE FROM */ -#define SF_RhsOfIN 0x20000000 /* Right-hand-side of an IN operator */ +#define SF_Correlated 0x20000000 /* True if references the outer context */ /* True if S exists and has SF_NestedFrom */ #define IsNestedFrom(S) ((S)!=0 && ((S)->selFlags&SF_NestedFrom)!=0) @@ -5082,7 +5082,6 @@ int sqlite3ExprTruthValue(const Expr*); int sqlite3ExprIsConstant(Parse*,Expr*); int sqlite3ExprIsConstantOrFunction(Expr*, u8); int sqlite3ExprIsConstantOrGroupBy(Parse*, Expr*, ExprList*); -// int sqlite3ExprIsTableConstant(Expr*,int); int sqlite3ExprIsSingleTableConstraint(Expr*,const SrcList*,int); #ifdef SQLITE_ENABLE_CURSOR_HINTS int sqlite3ExprContainsSubquery(Expr*); |