aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-12-13 00:49:42 +0000
committerdrh <drh@noemail.net>2019-12-13 00:49:42 +0000
commitc4938ea2ba17cdba4bd03a23b2f3cfd783f79c0a (patch)
treee2ac0d6c5ff55d0ab7e44b6b1a62c7b7ca697812 /src/sqliteInt.h
parentcbb9da337e7f8dc4e6bea59399a0394ec390f1f2 (diff)
downloadsqlite-c4938ea2ba17cdba4bd03a23b2f3cfd783f79c0a.tar.gz
sqlite-c4938ea2ba17cdba4bd03a23b2f3cfd783f79c0a.zip
Tie up the loose ends in the ExprList size reduction.
FossilOrigin-Name: 59d0f3afe5249a2a6453fe7bc810c2c7beb896d3800174c7c90f9304c0b1ad88
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 7425b2988..d022436d3 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2653,16 +2653,16 @@ struct Expr {
** In order to try to keep memory usage down, the Expr.a.zEName field
** is used for multiple purposes:
**
-** bNameIsTab bNameIsSpan Usage
-** ---------- ----------- -------------------------
-** false false (1) the AS of result set column
-** (2) COLUMN= of an UPDATE
+** eEName Usage
+** ---------- -------------------------
+** ENAME_NAME (1) the AS of result set column
+** (2) COLUMN= of an UPDATE
**
-** true false DB.TABLE.NAME used to resolve names
-** of subqueries
+** ENAME_TAB DB.TABLE.NAME used to resolve names
+** of subqueries
**
-** false true Text of the original result set
-** expression.
+** ENAME_SPAN Text of the original result set
+** expression.
*/
struct ExprList {
int nExpr; /* Number of expressions on the list */
@@ -4430,7 +4430,12 @@ void sqlite3CodeRhsOfIN(Parse*, Expr*, int);
int sqlite3CodeSubselect(Parse*, Expr*);
void sqlite3SelectPrep(Parse*, Select*, NameContext*);
void sqlite3SelectWrongNumTermsError(Parse *pParse, Select *p);
-int sqlite3MatchSpanName(const char*, const char*, const char*, const char*);
+int sqlite3MatchEName(
+ const struct ExprList_item*,
+ const char*,
+ const char*,
+ const char*
+);
int sqlite3ResolveExprNames(NameContext*, Expr*);
int sqlite3ResolveExprListNames(NameContext*, ExprList*);
void sqlite3ResolveSelectNames(Parse*, Select*, NameContext*);