diff --git a/tools/goctl/config/default.yaml b/tools/goctl/config/default.yaml index 6da7fa6b5..b61c62570 100644 --- a/tools/goctl/config/default.yaml +++ b/tools/goctl/config/default.yaml @@ -10,6 +10,9 @@ model: decimal: null_type: sql.NullFloat64 type: float64 + numeric: + null_type: sql.NullFloat64 + type: float64 double: null_type: sql.NullFloat64 type: float64 diff --git a/tools/goctl/model/sql/model/postgresqlmodel.go b/tools/goctl/model/sql/model/postgresqlmodel.go index 28c74f5a3..e80855f2a 100644 --- a/tools/goctl/model/sql/model/postgresqlmodel.go +++ b/tools/goctl/model/sql/model/postgresqlmodel.go @@ -9,8 +9,6 @@ import ( var p2m = map[string]string{ "int8": "bigint", - "numeric": "double", - "decimal": "double", "float8": "double", "float4": "float", "int2": "smallint",