Skip to content

Commit

Permalink
Fixed inconsistency in relation case sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
vitrevance authored and proullon committed Jul 24, 2024
1 parent 8f4341e commit 7c0f2b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/agnostic/predicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,13 +568,14 @@ func (s *AttributeSelector) Select(cols []string, in []*list.Element) (out []*Tu
for attrIdx, attr := range s.attributes {
idx[attrIdx] = -1
lattr := strings.ToLower(attr)
lrelation := strings.ToLower(s.relation)
for i, c := range cols {
lc := strings.ToLower(c)
if lc == lattr {
idx[attrIdx] = i
break
}
if lc == s.relation+"."+lattr {
if lc == lrelation+"."+lattr {
idx[attrIdx] = i
break
}
Expand Down

0 comments on commit 7c0f2b0

Please sign in to comment.