mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: sql cast function when converting to float (#11817)
This commit is contained in:
1 parent
b5dcaaccb4
commit
27eb4ae3bc
6 files changed
+43
-20
No files matched your search
@@ -492,7 +492,7 @@ func floatCast(v *Value) (float64, error) {
|
||||
switch x := v.value.(type) {
|
||||
case float64:
|
||||
return x, nil
|
||||
case int:
|
||||
case int64:
|
||||
return float64(x), nil
|
||||
case string:
|
||||
f, err := strconv.ParseFloat(strings.TrimSpace(x), 64)
|
||||
|
||||
Reference in new issue
Block a user