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
The current implementation of creating an array in postgres creates a malformed array literal error when used with composite types. makePgArray creates a string literal representation of the array, which doesn't work with composite types and (I assume) other more complicated types. Using an array constructor is more reliable.
The composite type I'm trying to use:
CREATETYPE "co2e_emission_factor_type" AS (
"id"varchar,
"value"numeric
)
Drizzle currently doesn't support composite types, so I've marked this as an enhancement instead of a bug as the ORM would need to be provide support for composite types.
What version of
drizzle-orm
are you using?0.31
What version of
drizzle-kit
are you using?No response
Describe the Bug
The current implementation of creating an array in postgres creates a malformed array literal error when used with composite types. makePgArray creates a string literal representation of the array, which doesn't work with composite types and (I assume) other more complicated types. Using an array constructor is more reliable.
The composite type I'm trying to use:
Expected behavior
I expect it to not fail.
Environment & setup
No response
The text was updated successfully, but these errors were encountered: