aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-05-02 20:04:34 +0000
committerdrh <>2022-05-02 20:04:34 +0000
commit63879a2c995c637c14a8f3aa1cee4e84dace56d7 (patch)
treefb9c39efe9386ca6c6e99349a89d0d6e6f2c5ab6 /src
parent72d620bdb1a4e3e7c8d405a56ec382a89202dcec (diff)
downloadsqlite-63879a2c995c637c14a8f3aa1cee4e84dace56d7.tar.gz
sqlite-63879a2c995c637c14a8f3aa1cee4e84dace56d7.zip
Improved comments.
FossilOrigin-Name: 158b80bed61ade793ccfd979f26a5231fabc8c14697ca0141bba61bc13e3b2ba
Diffstat (limited to 'src')
-rw-r--r--src/select.c2
-rw-r--r--src/sqliteInt.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c
index 187d89888..db84e22e4 100644
--- a/src/select.c
+++ b/src/select.c
@@ -5825,7 +5825,7 @@ static int selectExpander(Walker *pWalker, Select *p){
char *zTabName; /* AS name for this data source */
const char *zSchemaName = 0; /* Schema name for this data source */
int iDb; /* Schema index for this data src */
- IdList *pUsing; /* USING clause for this join */
+ IdList *pUsing; /* USING clause for pFrom[1] */
if( (zTabName = pFrom->zAlias)==0 ){
zTabName = pTab->zName;
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index f4c48c112..c64aa3c01 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3008,7 +3008,8 @@ struct ExprList {
unsigned bNulls :1; /* True if explicit "NULLS FIRST/LAST" */
unsigned bUsed :1; /* This column used in a SF_NestedFrom subquery */
unsigned bUsingTerm:1; /* Term from the USING clause of a NestedFrom */
- unsigned bNoExpand: 1;
+ unsigned bNoExpand: 1; /* Term is an auxiliary in NestedFrom and should
+ ** not be expanded by "*" in parent queries */
union {
struct { /* Used by any ExprList other than Parse.pConsExpr */
u16 iOrderByCol; /* For ORDER BY, column number in result set */