Skip to content

Incorrect parsing with extra parentheses #41

@ljgago

Description

@ljgago

Describe the bug
When I add an extra left and right parentheses in the middle of a query around a comparison, the mql parser doesn't generate the same logical representation.

Example:

URL Query (parentheses around test_b="TestB"):
(test_a="TestA" and (test_b="TestB")) or (test_c="TestC" and test_d="TestD")

SQL Query Generated:
(test_a=? and (test_b=? or (test_c=? and test_d=?)))

To Reproduce
A full example with Go Playground

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions