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
This does not occur if your generated structs use a string with --go-type 'numeric=string'
However pgtype.Numeric has a bug in string conversion, I reported it upstream jackc/pgtype#210
For now, I will use the last pggen commit that still contains QuerierConfig and everything works properly with --go-type 'numeric=github.com/shopspring/decimal.Decimal'
The text was updated successfully, but these errors were encountered:
The string conversion bug has now been fixed in pgtype.Numeric so --go-type 'numeric=string' can be used as a workaround to allow using numeric columns in composite types
Using an array of a composite type with a
numeric
column and no--go-type
override results in a panicThis does not occur if your generated structs use a
string
with--go-type 'numeric=string'
However
pgtype.Numeric
has a bug in string conversion, I reported it upstream jackc/pgtype#210For now, I will use the last pggen commit that still contains
QuerierConfig
and everything works properly with--go-type 'numeric=github.com/shopspring/decimal.Decimal'
The text was updated successfully, but these errors were encountered: