We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a72fafb commit 07d6ccbCopy full SHA for 07d6ccb
sql/schemas.go
@@ -101,9 +101,8 @@ func (s Schema) IndexOf(column, source string) int {
101
// IndexOfColName returns the index of the given column in the schema or -1 if it's not present. Only safe for schemas
102
// corresponding to a single table, where the source of the column is irrelevant.
103
func (s Schema) IndexOfColName(column string) int {
104
- column = strings.ToLower(column)
105
for i, col := range s {
106
- if strings.ToLower(col.Name) == column {
+ if strings.EqualFold(col.Name, column) {
107
return i
108
}
109
0 commit comments