Skip to content

Commit

Permalink
Ensure we lowercase indexHint values
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaner committed Feb 13, 2025
1 parent fccc037 commit 5a8854c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sharding/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ func (f *ShardedCopyFilter) BuildSelect(columns []string, table *ghostferry.Tabl
}
}

indexHint = strings.ToLower(indexHint)

selectPaginationKeys := "SELECT " + quotedPaginationKey + " FROM " + quotedTable

if indexHint != "none" {
Expand Down

0 comments on commit 5a8854c

Please sign in to comment.