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

Add ALWAYS() on two unreachable branches in the * expander.

FossilOrigin-Name: 387c852375bba62df040330944c9e979a6993f95ece3443597c5fc66e34263ca
This commit is contained in:
drh
2022-05-09 16:29:53 +00:00
parent 77874e782b
commit 4077b006ad
3 changed files with 9 additions and 9 deletions

View File

@@ -5884,11 +5884,11 @@ 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
&& ALWAYS((selFlags & SF_IncludeHidden)==0)
){
continue;
}
if( (pTab->aCol[j].colFlags & COLFLAG_NOEXPAND)!=0
if( ALWAYS((pTab->aCol[j].colFlags & COLFLAG_NOEXPAND)!=0)
&& zTName==0
&& (selFlags & (SF_NestedFrom))==0
){