mirror of
https://github.com/minio/minio.git
synced 2025-11-11 14:30:17 -05:00
S3 Select: Mismatched types don't match (#8608)
When comparing for equality, if types cannot be matched, they don't match.
This commit is contained in:
@@ -445,7 +445,14 @@ func (v *Value) compareOp(op string, a *Value) (res bool, err error) {
|
||||
return timestampCompare(op, timestampV, timestampA), nil
|
||||
}
|
||||
|
||||
return false, errCmpMismatchedTypes
|
||||
// Types cannot be compared, they do not match.
|
||||
switch op {
|
||||
case opEq:
|
||||
return false, nil
|
||||
case opIneq:
|
||||
return true, nil
|
||||
}
|
||||
return false, errCmpInvalidBoolOperator
|
||||
}
|
||||
|
||||
func inferTypesForCmp(a *Value, b *Value) error {
|
||||
|
||||
Reference in New Issue
Block a user