Skip to content

Commit 07d6ccb

Browse files
author
James Cor
committed
more string stuff
1 parent a72fafb commit 07d6ccb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/schemas.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ func (s Schema) IndexOf(column, source string) int {
101101
// IndexOfColName returns the index of the given column in the schema or -1 if it's not present. Only safe for schemas
102102
// corresponding to a single table, where the source of the column is irrelevant.
103103
func (s Schema) IndexOfColName(column string) int {
104-
column = strings.ToLower(column)
105104
for i, col := range s {
106-
if strings.ToLower(col.Name) == column {
105+
if strings.EqualFold(col.Name, column) {
107106
return i
108107
}
109108
}

0 commit comments

Comments
 (0)