mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 12:57:57 +08:00
fmt
This commit is contained in:
@@ -1404,11 +1404,11 @@ func (e *SQLEngine) valuesEqual(fieldValue *schema_pb.Value, compareValue interf
|
||||
// Handle numeric comparisons with type coercion
|
||||
fieldNum := e.convertToNumber(fieldValue)
|
||||
compareNum := e.convertCompareValueToNumber(compareValue)
|
||||
|
||||
|
||||
if fieldNum != nil && compareNum != nil {
|
||||
return *fieldNum == *compareNum
|
||||
}
|
||||
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -1450,11 +1450,11 @@ func (e *SQLEngine) valueLessThan(fieldValue *schema_pb.Value, compareValue inte
|
||||
// Handle numeric comparisons with type coercion
|
||||
fieldNum := e.convertToNumber(fieldValue)
|
||||
compareNum := e.convertCompareValueToNumber(compareValue)
|
||||
|
||||
|
||||
if fieldNum != nil && compareNum != nil {
|
||||
return *fieldNum < *compareNum
|
||||
}
|
||||
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -1470,11 +1470,11 @@ func (e *SQLEngine) valueGreaterThan(fieldValue *schema_pb.Value, compareValue i
|
||||
// Handle numeric comparisons with type coercion
|
||||
fieldNum := e.convertToNumber(fieldValue)
|
||||
compareNum := e.convertCompareValueToNumber(compareValue)
|
||||
|
||||
|
||||
if fieldNum != nil && compareNum != nil {
|
||||
return *fieldNum > *compareNum
|
||||
}
|
||||
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user