1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

When expanding "*" in the result set of a SELECT, do not attach a table name

to columns that are in subsequent USING clauses.

FossilOrigin-Name: 91530990e018580ec5322ace6f0c369a32a3529a0bfb4defb25ca20223a2a80f
This commit is contained in:
drh
2022-04-15 18:30:48 +00:00
parent 22c4bc8991
commit 4ce7bf9156
4 changed files with 51 additions and 18 deletions

View File

@@ -3090,6 +3090,7 @@ struct SrcItem {
unsigned isCte :1; /* This is a CTE */
unsigned notCte :1; /* This item may not match a CTE */
unsigned isUsing :1; /* u3.pUsing is valid */
unsigned isSynthUsing :1; /* u3.pUsing is synthensized from NATURAL */
} fg;
int iCursor; /* The VDBE cursor number used to access this table */
union {