-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
CCJSqlParserUtil fails on different variable names #1462
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
Comments
Greetings,
|
Thank you for the PR! I am just curious why it got detected as a keyword, since it also starts with a table alias. 🤔 |
The challenge is like that:
Step 1 is straight forward and everyone is fast to define a new token when a certain feature is needed and added. The next problem is performance: Step 2 often results in additional Please keep in mind: JSQLParser is a "generated parser", very flexible and agnostic to the RDBMS. |
Ok thank you for clarifying! |
Btw, the PR #1382 solves your challenge, I have just tested it. |
That is perfect! 👍 Keep the great work up! |
Describe the bug
When I want to parse the following query
using
(Select) CCJSqlParserUtil.parse(query);
I get the following error:Although when I try to parse the following query
everything works as expected.
It is quite stragne that only the difference between
delayed
anddelaye
makes the parsing to fail. Maybe I am getting something wrong but I think an identifier should not make such a huge difference.To Reproduce
See above
Expected behavior
Both queries should be parse without failing.
System
CCJSqlParserUtil.parse(query)
Azul Zulu 1.8.0_322
The text was updated successfully, but these errors were encountered: