File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -179,16 +179,18 @@ impl ResolveUnqualifiedIdentifer {
179179 fn get_table_aliases ( tables : & [ TableWithJoins ] ) -> HashSet < String > {
180180 let mut aliases = HashSet :: new ( ) ;
181181 for table_with_joins in tables {
182- if let TableFactor :: Table { alias, .. } = & table_with_joins. relation {
183- if let Some ( alias) = & alias {
184- aliases. insert ( alias. name . value . clone ( ) ) ;
185- }
182+ if let TableFactor :: Table {
183+ alias : Some ( alias) , ..
184+ } = & table_with_joins. relation
185+ {
186+ aliases. insert ( alias. name . value . clone ( ) ) ;
186187 }
187188 for join in & table_with_joins. joins {
188- if let TableFactor :: Table { alias, .. } = & join. relation {
189- if let Some ( alias) = & alias {
190- aliases. insert ( alias. name . value . clone ( ) ) ;
191- }
189+ if let TableFactor :: Table {
190+ alias : Some ( alias) , ..
191+ } = & join. relation
192+ {
193+ aliases. insert ( alias. name . value . clone ( ) ) ;
192194 }
193195 }
194196 }
You can’t perform that action at this time.
0 commit comments