Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifersp committed May 6, 2024
1 parent bdd4729 commit b237a52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/planbuilder/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ func (s *scope) resolveColumn(db, table, col string, checkParent, chooseFirst bo
var found scopeColumn
var foundCand bool
for _, c := range s.cols {
colNameMatch := strings.EqualFold(c.col, col) || (strings.EqualFold(strings.Split(c.col, "::")[0], col))
if colNameMatch && (strings.EqualFold(c.table, table) || table == "") && (strings.EqualFold(c.db, db) || db == "") {
if strings.EqualFold(c.col, col) && (strings.EqualFold(c.table, table) || table == "") && (strings.EqualFold(c.db, db) || db == "") {
if foundCand {
if found.equals(c) {
continue
Expand Down

0 comments on commit b237a52

Please sign in to comment.