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

If there is a condition that specifies inequality ("<>"), the "order by" clause may not be resolved. #1

Open
4color opened this issue Sep 12, 2024 · 1 comment

Comments

@4color
Copy link

4color commented Sep 12, 2024

query praser:

for:

where t.GY_FS ='1' and B.B<>2 ORDER BY QD_RQ DESC

@4color 4color changed the title If there is a condition that specifies inequality (e.g., "!=" or "<>"), the "order by" clause may not be resolved. If there is a condition that specifies inequality ("<>"), the "order by" clause may not be resolved. Sep 12, 2024
@adranwit
Copy link
Contributor

adranwit commented Sep 21, 2024

I think there are binary operators: https://github.com/viant/sqlparser/blob/main/lex.go#L136
create pull request if you would need <>, note that there is already !=

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

2 participants