mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
fix: sql cast function when converting to float (#11817)
This commit is contained in:
@@ -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