Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fe0f4ee

Browse files
committedMay 2, 2025
fix: missing numeric type mappings
1 parent 2c6a780 commit fe0f4ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎internal/core/postgresql_type.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ func postgresType(req *plugin.GenerateRequest, col *plugin.Column) (string, bool
1111
columnType := sdk.DataType(col.Type)
1212

1313
switch columnType {
14-
case "serial", "pg_catalog.serial4":
14+
case "serial", "serial4", "pg_catalog.serial4":
1515
return "Int", false
1616

17-
case "bigserial", "pg_catalog.serial8":
17+
case "bigserial", "serial8", "pg_catalog.serial8":
1818
return "Long", false
1919

20-
case "smallserial", "pg_catalog.serial2":
20+
case "smallserial", "serial2", "pg_catalog.serial2":
2121
return "Short", false
2222

2323
case "integer", "int", "int4", "pg_catalog.int4":
2424
return "Int", false
2525

26-
case "bigint", "pg_catalog.int8":
26+
case "bigint", "int8", "pg_catalog.int8":
2727
return "Long", false
2828

29-
case "smallint", "pg_catalog.int2":
29+
case "smallint", "int2", "pg_catalog.int2":
3030
return "Short", false
3131

32-
case "float", "double precision", "pg_catalog.float8":
32+
case "float", "double precision", "float8", "pg_catalog.float8":
3333
return "Double", false
3434

35-
case "real", "pg_catalog.float4":
35+
case "real", "float4", "pg_catalog.float4":
3636
return "Float", false
3737

3838
case "pg_catalog.numeric":

0 commit comments

Comments
 (0)
Please sign in to comment.