aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-05-22 13:01:39 +0000
committerdrh <drh@noemail.net>2012-05-22 13:01:39 +0000
commite56467fc9ffdf634b939c33886e6513fc27376c3 (patch)
tree0c81cbc3359f436a9b22bb80f91021b37e0e24f7 /src/sqliteInt.h
parent7b9370a445ad58213953264377be9124ef01c127 (diff)
parent3773b29167a13af8c8cb1cef14dda5772f0a2232 (diff)
downloadsqlite-e56467fc9ffdf634b939c33886e6513fc27376c3.tar.gz
sqlite-e56467fc9ffdf634b939c33886e6513fc27376c3.zip
Version 3.7.12.1
FossilOrigin-Name: d07b7b67d1b3bf65cfe8d96d45a7f1d387bea7ce
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 7c1394c4e..7e5b7d9c2 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -2014,16 +2014,22 @@ struct NameContext {
Parse *pParse; /* The parser */
SrcList *pSrcList; /* One or more tables used to resolve names */
ExprList *pEList; /* Optional list of named expressions */
- int nRef; /* Number of names resolved by this context */
- int nErr; /* Number of errors encountered while resolving names */
- u8 allowAgg; /* Aggregate functions allowed here */
- u8 hasAgg; /* True if aggregates are seen */
- u8 isCheck; /* True if resolving names in a CHECK constraint */
AggInfo *pAggInfo; /* Information about aggregates at this level */
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 */
+ u8 ncFlags; /* Zero or more NC_* flags defined below */
};
/*
+** Allowed values for the NameContext, ncFlags field.
+*/
+#define NC_AllowAgg 0x01 /* Aggregate functions are allowed here */
+#define NC_HasAgg 0x02 /* One or more aggregate functions seen */
+#define NC_IsCheck 0x04 /* True if resolving names in a CHECK constraint */
+#define NC_InAggFunc 0x08 /* True if analyzing arguments to an agg func */
+
+/*
** An instance of the following structure contains all information
** needed to generate code for a single SELECT statement.
**