(list *ast.List, table *TableReference)
| 276 | } |
| 277 | |
| 278 | func findPhysicalTableForAlias(list *ast.List, table *TableReference) *TableReference { |
| 279 | if list == nil || table == nil { |
| 280 | return nil |
| 281 | } |
| 282 | for _, item := range list.Items { |
| 283 | if result := findPhysicalTableForAliasInNode(item, table); result != nil { |
| 284 | return result |
| 285 | } |
| 286 | } |
| 287 | return nil |
| 288 | } |
| 289 | |
| 290 | func findPhysicalTableForAliasInNode(node ast.Node, table *TableReference) *TableReference { |
| 291 | switch n := node.(type) { |
no test coverage detected