(n tidbast.ResultSetNode)
| 308 | } |
| 309 | |
| 310 | func extractResultSetNode(n tidbast.ResultSetNode) ([]table, error) { |
| 311 | if n == nil { |
| 312 | return nil, nil |
| 313 | } |
| 314 | switch n := n.(type) { |
| 315 | case *tidbast.SelectStmt: |
| 316 | return nil, nil |
| 317 | case *tidbast.SubqueryExpr: |
| 318 | return nil, nil |
| 319 | case *tidbast.TableSource: |
| 320 | return extractTableSource(n) |
| 321 | case *tidbast.TableName: |
| 322 | return extractTableName(n) |
| 323 | case *tidbast.Join: |
| 324 | return extractJoin(n) |
| 325 | case *tidbast.SetOprStmt: |
| 326 | return nil, nil |
| 327 | } |
| 328 | return nil, nil |
| 329 | } |
| 330 | |
| 331 | func extractTableRefs(n *tidbast.TableRefsClause) ([]table, error) { |
| 332 | if n == nil { |
no test coverage detected