Skip to content

[BUG] GoSQLX does not support parentheses #519

Description

@Ol1BoT

Bug Description

GoSQLX does not support parentheses, which makes this library impossible to use in production.

To Reproduce

Steps to reproduce the behavior:
go to the playground

input:

SELECT * FROM TABLE WHERE (name = 'James' OR name = 'Bond') AND trading_day = "2026-01-01"

output:

SELECT *
FROM TABLE
WHERE name = 'James' OR name = 'Bond' AND trading_day = "2026-01-01";

Expected Behavior

parentheses should remain

Actual Behavior

parentheses do not exist.

When fixing this issue, you should also be able to transform a WHERE clause, to wrap the current WHERE clause in parentheses and then include the add condition.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions