Support more numeric types.
This commit is contained in:
parent
31736ec13e
commit
371b6ce799
2 changed files with 32 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue