Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No parentheses indicator? #131

Open
rgwozdz opened this issue Apr 15, 2023 · 0 comments
Open

No parentheses indicator? #131

rgwozdz opened this issue Apr 15, 2023 · 0 comments

Comments

@rgwozdz
Copy link

rgwozdz commented Apr 15, 2023

If I parse:

SELECT * FROM cars
WHERE
(model = 'ford' OR model = 'benz' OR model ='honda') AND color = 'white';

And I examine the AST of the WHERE, there doesn't seem to be any explicit indication of the parentheses being present on the left node of the tree. Can you confirm? The node-sql-parser adds a boolean flag to each node if it is enclosed by parentheses. Are you open to adopting this pattern in this parser? If so I can attempt a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant