From 967f0926eba9117a63fb2cf1120509ad9efe6f9e Mon Sep 17 00:00:00 2001 From: POABOB Date: Fri, 7 Mar 2025 19:12:02 +0800 Subject: [PATCH] fix: fix the bug of the numeric/decimal data type in pg (#4686) --- tools/goctl/model/sql/model/postgresqlmodel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/goctl/model/sql/model/postgresqlmodel.go b/tools/goctl/model/sql/model/postgresqlmodel.go index 8c0957001..28c74f5a3 100644 --- a/tools/goctl/model/sql/model/postgresqlmodel.go +++ b/tools/goctl/model/sql/model/postgresqlmodel.go @@ -9,7 +9,8 @@ import ( var p2m = map[string]string{ "int8": "bigint", - "numeric": "bigint", + "numeric": "double", + "decimal": "double", "float8": "double", "float4": "float", "int2": "smallint",