Skip to content

JSON query broken due to extra space #15

@djpate

Description

@djpate

We've encountered a weird bug here when using a JSONB column.

if you have a where clause like

.where("event_metadata.metadata -> 'replaced' != 'true'")

The query will be replaced by

event_metadata.metadata - > 'replaced' != 'true'

notice the extra space between the - and >

This prevents the query from being run.

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