Support more numeric types.

This commit is contained in:
zer0sub 2019-03-30 09:48:54 +01:00
parent 31736ec13e
commit 371b6ce799
2 changed files with 32 additions and 1 deletions

View file

@ -54,7 +54,9 @@ func (c ColumnInfo) GoBaseType() string {
return "[]byte"
case "text":
return "string"
case "numeric", "real":
case "real":
return "float32"
case "numeric", "double precision":
return "float64"
default:
return "string"