Skip to content

Commit 967f092

Browse files
authored
fix: fix the bug of the numeric/decimal data type in pg (#4686)
1 parent e68c683 commit 967f092

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/goctl/model/sql/model/postgresqlmodel.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import (
99

1010
var p2m = map[string]string{
1111
"int8": "bigint",
12-
"numeric": "bigint",
12+
"numeric": "double",
13+
"decimal": "double",
1314
"float8": "double",
1415
"float4": "float",
1516
"int2": "smallint",

0 commit comments

Comments
 (0)