fix: Fix PostgreSQL numeric type mapping in goctl model generation (#4992)

Co-authored-by: 李安琳 <anlynn@gmail.com>
This commit is contained in:
anlynn
2025-07-13 10:40:16 +08:00
committed by GitHub
parent c9ff6a10d3
commit ba0febf308
2 changed files with 3 additions and 2 deletions

View File

@@ -10,6 +10,9 @@ model:
decimal: decimal:
null_type: sql.NullFloat64 null_type: sql.NullFloat64
type: float64 type: float64
numeric:
null_type: sql.NullFloat64
type: float64
double: double:
null_type: sql.NullFloat64 null_type: sql.NullFloat64
type: float64 type: float64

View File

@@ -9,8 +9,6 @@ import (
var p2m = map[string]string{ var p2m = map[string]string{
"int8": "bigint", "int8": "bigint",
"numeric": "double",
"decimal": "double",
"float8": "double", "float8": "double",
"float4": "float", "float4": "float",
"int2": "smallint", "int2": "smallint",