You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A field of type numeric in the PostgreSQL database is generated as int64. And the numeric database type is treated as a bigint type in goctl.yaml
To Reproduce
The sql is
createtabledemo (
id bigint generated always as identity primary key,
max_position decimal(20, 4) not null
);
Describe the bug
A field of type
numeric
in the PostgreSQL database is generated asint64
. And thenumeric
database type is treated as abigint
type ingoctl.yaml
To Reproduce
The sql is
The genereated model struct is
The
goctl.yaml
isExpected behavior
The type of MaxPosition is
decimal.Decimal
Environments (please complete the following information):
The text was updated successfully, but these errors were encountered: