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

Tweaks to the name resolution on parenthesized joins. A small number of

tests fail now due to extra columns appearing in the expansion of "*".

FossilOrigin-Name: c86804917e3fffcf0c19bbf11875667f7968275210fc768e650826bd9c87a5d2
This commit is contained in:
drh
2022-04-28 17:35:58 +00:00
parent 09121b0523
commit 4bea8c6b56
4 changed files with 4604 additions and 8 deletions

View File

@@ -5878,12 +5878,13 @@ static int selectExpander(Walker *pWalker, Select *p){
*/
if( pTab->aCol[j].colFlags & (COLFLAG_HIDDEN|COLFLAG_NOEXPAND) ){
if( IsHiddenColumn(&pTab->aCol[j])
&& (selFlags & SF_IncludeHidden)==0
&& (selFlags & (SF_IncludeHidden|SF_NestedFrom))==0
){
continue;
}
if( (pTab->aCol[j].colFlags & COLFLAG_NOEXPAND)!=0
&& zTName==0
&& (selFlags & (SF_NestedFrom))==0
){
continue;
}