mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
fix: use equalFold() instead of lower and compare (#13624)
This commit is contained in:
@@ -118,7 +118,7 @@ func ParseSelectStatement(s string) (stmt SelectStatement, err error) {
|
||||
}
|
||||
|
||||
func validateTableName(from *TableExpression) error {
|
||||
if strings.ToLower(from.Table.BaseKey.String()) != baseTableName {
|
||||
if !strings.EqualFold(from.Table.BaseKey.String(), baseTableName) {
|
||||
return errBadTableName(errors.New("table name must be `s3object`"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user