diff options
author | drh <drh@noemail.net> | 2018-04-16 10:47:38 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-04-16 10:47:38 +0000 |
commit | 1d621f7f0dcb9a12cc5274e503cdb1d7e7bf24f4 (patch) | |
tree | dd0831ea1e3e2396fe36c3a86b3b8efe91267710 /src/sqliteInt.h | |
parent | e966a36cf4f771b200a5cfbf3714d4a33679c9d4 (diff) | |
parent | f5ced1f3b14994816b476e63bf37213dce33f10d (diff) | |
download | sqlite-1d621f7f0dcb9a12cc5274e503cdb1d7e7bf24f4.tar.gz sqlite-1d621f7f0dcb9a12cc5274e503cdb1d7e7bf24f4.zip |
Merge changes from trunk.
FossilOrigin-Name: 54d96772e78b7f57d5b590aebe34a139ade73629aebe16677372650b33513b1d
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index f68185f74..cd65ffb39 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -2682,8 +2682,10 @@ struct SrcList { struct NameContext { Parse *pParse; /* The parser */ SrcList *pSrcList; /* One or more tables used to resolve names */ - ExprList *pEList; /* Optional list of result-set columns */ - AggInfo *pAggInfo; /* Information about aggregates at this level */ + union { + ExprList *pEList; /* Optional list of result-set columns */ + AggInfo *pAggInfo; /* Information about aggregates at this level */ + } uNC; NameContext *pNext; /* Next outer name context. NULL for outermost */ int nRef; /* Number of names resolved by this context */ int nErr; /* Number of errors encountered while resolving names */ @@ -2705,6 +2707,8 @@ struct NameContext { #define NC_HasAgg 0x0010 /* One or more aggregate functions seen */ #define NC_IdxExpr 0x0020 /* True if resolving columns of CREATE INDEX */ #define NC_VarSelect 0x0040 /* A correlated subquery has been seen */ +#define NC_UEList 0x0080 /* True if uNC.pEList is used */ +#define NC_UAggInfo 0x0100 /* True if uNC.pAggInfo is used */ #define NC_MinMaxAgg 0x1000 /* min/max aggregates seen. See note above */ #define NC_Complex 0x2000 /* True if a function or subquery seen */ |