Skip to content

False positive on JSON operator '#>' and '#>>' #29

@wennergr

Description

@wennergr

First thanks for a great tool! Very useful ;)

The issue:
Valid postgres sql statements that contains "'#>" and "#>>" fails validation.

Postgres documentation for these operations: https://www.postgresql.org/docs/11/functions-json.html

Example:

bash-4.4# echo "select '{\"a\":[1,2,3],\"b\":[4,5,6]}'::json#>>'{a,2}'" | pgsanity
line 2: ERROR: syntax error at or near "#>>'{a,2}'
"

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