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

Fix unary operator for identifier #5862

Merged
merged 2 commits into from Apr 29, 2024

Conversation

ZhengguanLi
Copy link
Contributor

@ZhengguanLi ZhengguanLi commented Apr 22, 2024

SELECT * FROM employees WHERE -salary < 0 ORDER BY employee_id is wrongly converted to: SELECT * FROM employees WHERE -(salary < 0) ORDER BY employee_id, causing error in Oracle:

ORA-00907: missing right parenthesis

@lizongbo lizongbo merged commit b3546cd into alibaba:master Apr 29, 2024
5 checks passed
@ZhengguanLi ZhengguanLi deleted the unary-operator-fix branch April 30, 2024 22:16
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

Successfully merging this pull request may close these issues.

None yet

2 participants