Skip to content
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

Insert helper fails on jsonb column when passed an array of booleans #575

Closed
evelant opened this issue Apr 3, 2023 · 1 comment
Closed

Comments

@evelant
Copy link

evelant commented Apr 3, 2023

repro: https://github.com/evelant/postgresjs-jsonb-array-bug

If you have a jsonb column and attempt to use the insert helper with an array of booleans for that column it will fail with

column "test_col" is of type jsonb but expression is of type boolean

When inserting/updating large objects that contain some jsonb arrays of booleans this makes the helper unusable.

@porsager
Copy link
Owner

This looks related to #392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants