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.
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:
output:
Expected Behavior
parentheses should remain
Actual Behavior
parentheses do not exist.
When fixing this issue, you should also be able to transform a
WHEREclause, to wrap the current WHERE clause in parentheses and then include the add condition.