MCPcopy Create free account
hub / github.com/bytebase/bytebase / findPhysicalTableForAlias

Function findPhysicalTableForAlias

backend/plugin/parser/tsql/backup.go:278–288  ·  view source on GitHub ↗
(list *ast.List, table *TableReference)

Source from the content-addressed store, hash-verified

276}
277
278func 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
290func findPhysicalTableForAliasInNode(node ast.Node, table *TableReference) *TableReference {
291 switch n := node.(type) {

Callers 1

resolveDMLTargetTableFunction · 0.70

Calls 1

Tested by

no test coverage detected