mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
fix unicode support related bugs in s3select (#7877)
This commit is contained in:
committed by
Harshavardhana
parent
bb871a7c31
commit
037319066f
@@ -196,7 +196,7 @@ func charlen(v *Value) (*Value, error) {
|
||||
err := fmt.Errorf("%s/%s expects a string argument", sqlFnCharLength, sqlFnCharacterLength)
|
||||
return nil, errIncorrectSQLFunctionArgumentType(err)
|
||||
}
|
||||
return FromInt(int64(len(s))), nil
|
||||
return FromInt(int64(len([]rune(s)))), nil
|
||||
}
|
||||
|
||||
func lowerCase(v *Value) (*Value, error) {
|
||||
|
||||
Reference in New Issue
Block a user