-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding custom types as jsonb no longe works with v5.6 and above #2125
Labels
Comments
+1 |
Can you provide an example that demonstrates this error? |
Something like this
then the following code
returns the following error
we have an
|
I'd need an example I can run. Perhaps that's what you intended for #2127? It seems to work on master... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @jackc , we use call
RegisterDefaultPgType
for custom structs like thisand everything would work in v5.5.4.
Now with v5.7 (and I guess with v5.6 too), we get the following errors on insert:
not sure if this is the root cause, but I tried to debug it to understand a bit better what's going on and I think this is the reason it chooses the json codec instead of the jsonb codec.
With v5.7.1 is there a new way to define custom types? btw we use QueryExecModeExec.
The text was updated successfully, but these errors were encountered: