Skip to content

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

@evelant

Description

@evelant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions