mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-06 20:17:38 +01:00
fmt
This commit is contained in:
1 parent
59d6806146
commit
ba4a8b91d5
1 file changed
+6
-6
@@ -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