-
Notifications
You must be signed in to change notification settings - Fork 912
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
error on jsonb field with binary_parameters #528
Comments
The binary format for jsonb is prefixed with an 8-bit version. The current version is You could cast your Since everything passes through |
@rothskeller did you find a solution? |
Your suggestion of casting to string solved my problem, thanks. My apologies if you were waiting on a response from me. |
In order to support `binary_parameters` flag in lib/pq, we need to explicitly return string type to signal lib/pq to send the field via text format (lib/pq#528).
In order to support `binary_parameters` flag in lib/pq, we need to explicitly return string type to signal lib/pq to send the field via text format (lib/pq#528).
I guess this one could be close :) |
I have binary_parameters=yes in my connection string so that I can efficiently set the values of some multimegabyte bytea columns.
Elsewhere in my database, I have jsonb columns. These work fine when binary_parameters is not set, but when it is set, I get "pq: unsupported jsonb version number 123" when updating a record containing a jsonb column.
It seems like I need binary_parameters off when working with jsonb, and on when working with huge bytea. And it's connection string parameter, so I can't have it both ways. Help?
The text was updated successfully, but these errors were encountered: