(item ast.Node, tables []*Table, targetList *ast.List)
| 715 | } |
| 716 | |
| 717 | func findColumnForNode(item ast.Node, tables []*Table, targetList *ast.List) error { |
| 718 | ref, ok := item.(*ast.ColumnRef) |
| 719 | if !ok { |
| 720 | return nil |
| 721 | } |
| 722 | return findColumnForRef(ref, tables, targetList) |
| 723 | } |
| 724 | |
| 725 | func findColumnForRef(ref *ast.ColumnRef, tables []*Table, targetList *ast.List) error { |
| 726 | parts := stringSlice(ref.Fields) |
no test coverage detected