(from []ast.TableReference, old, new string)
| 133 | } |
| 134 | |
| 135 | func replaceTableInFrom(from []ast.TableReference, old, new string) { |
| 136 | for i := range from { |
| 137 | if strings.EqualFold(from[i].Name, old) { |
| 138 | from[i].Name = new |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func replaceTableInJoins(joins []ast.JoinClause, old, new string) { |
| 144 | for i := range joins { |
no outgoing calls
no test coverage detected