This commit is contained in:
Brian Sutherland 2016-07-28 12:59:28 +02:00
parent 5085f2a137
commit 0830d3e098

View File

@ -323,6 +323,13 @@ func dbToFloat64(t interface{}) (float64, bool) {
return math.NaN(), false
}
return result, true
case string:
result, err := strconv.ParseFloat(v, 64)
if err != nil {
log.Println("Could not parse string:", err)
return math.NaN(), false
}
return result, true
case nil:
return math.NaN(), true
default: