diff options
author | drh <> | 2022-04-20 12:02:52 +0000 |
---|---|---|
committer | drh <> | 2022-04-20 12:02:52 +0000 |
commit | 2627cbd4b505282ce6e8e8dc6082468cc181c992 (patch) | |
tree | 8638a9fb6da72f8f832f0afa13de18df48cf837b /src/resolve.c | |
parent | befbb40f44f4791eaf3a995fa4c6e8cd91241ac2 (diff) | |
download | sqlite-2627cbd4b505282ce6e8e8dc6082468cc181c992.tar.gz sqlite-2627cbd4b505282ce6e8e8dc6082468cc181c992.zip |
Add a new comment to the body of lookupName(). No code changes.
FossilOrigin-Name: 22fa9b9b450fbbf7578597714eb1094f7d7433ac13497dc7d4a9affc4a2652ad
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resolve.c b/src/resolve.c index 4d5e23dff..c1a2a790c 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -314,6 +314,12 @@ static int lookupName( assert( pTab!=0 && pTab->zName!=0 ); assert( pTab->nCol>0 || pParse->nErr ); if( pItem->pSelect && (pItem->pSelect->selFlags & SF_NestedFrom)!=0 ){ + /* In this case, pItem is a subquery that has been formed from a + ** parenthesized subset of the FROM clause terms. Example: + ** .... FROM t1 LEFT JOIN (t2 RIGHT JOIN t3 USING(x)) USING(y) ... + ** \_________________________/ + ** This pItem -------------^ + */ int hit = 0; pEList = pItem->pSelect->pEList; for(j=0; j<pEList->nExpr; j++){ |