Replies: 1 comment
-
|
pgx only knows what type a PostgreSQL value is based on the OID. Builtin types have constant OIDs, but custom types like enums have there own OID. When using a Go See the Go docs for the pgtype package. In particular you will probably want to look at |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to run a PostgreSQL query that accepts an array of custom enums as input. It works fine when I pass a single enum value, but it fails when I pass a slice (array) of enums.
Error:
My Enum:
My Function:
Beta Was this translation helpful? Give feedback.
All reactions