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

grammar uses binary_expression instead of expression often #8

Open
machow opened this issue Apr 17, 2017 · 1 comment
Open

grammar uses binary_expression instead of expression often #8

machow opened this issue Apr 17, 2017 · 1 comment

Comments

@machow
Copy link
Contributor

machow commented Apr 17, 2017

For example, standard_function often allows an argument to be concatenation (which is now just another name for binary_expression). E.g.

COUNT '(' ( '*' | (DISTINCT | UNIQUE | ALL)? concatenation) ')' over_clause?

However, the official postgres parser allows any expression, rather than just concatentation. E.g.

SELECT COUNT( a AND b) FROM x
@machow
Copy link
Contributor Author

machow commented May 22, 2017

Note, this may have more to do with differences between the oracle plsql and postgres plsql parsers. However, it seems better to be more permissive in what can be used, so putting in expression would be useful.

@machow machow self-assigned this May 22, 2017
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