Skip to content

Commit 70219f5

Browse files
committed
fix: missing numeric & dates
1 parent fe0f4ee commit 70219f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/core/postgresql_type.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func postgresType(req *plugin.GenerateRequest, col *plugin.Column) (string, bool
3535
case "real", "float4", "pg_catalog.float4":
3636
return "Float", false
3737

38-
case "pg_catalog.numeric":
38+
case "numeric", "pg_catalog.numeric":
3939
return "java.math.BigDecimal", false
4040

4141
case "bool", "pg_catalog.bool":
@@ -52,13 +52,13 @@ func postgresType(req *plugin.GenerateRequest, col *plugin.Column) (string, bool
5252
// Date and time mappings from https://jdbc.postgresql.org/documentation/head/java8-date-time.html
5353
return "LocalDate", false
5454

55-
case "pg_catalog.time", "pg_catalog.timetz":
55+
case "time", "pg_catalog.time", "timetz", "pg_catalog.timetz":
5656
return "LocalTime", false
5757

58-
case "pg_catalog.timestamp":
58+
case "timestamp", "pg_catalog.timestamp":
5959
return "LocalDateTime", false
6060

61-
case "pg_catalog.timestamptz", "timestamptz":
61+
case "timestamptz", "pg_catalog.timestamptz":
6262
// TODO
6363
return "OffsetDateTime", false
6464

0 commit comments

Comments
 (0)