-
-
Notifications
You must be signed in to change notification settings - Fork 102
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 #226 - Ignore end of comment string at the end of queries with MySQL-specific commands #424
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on the sql-parser 🚀
this fix only ignores the end, but without it what would the unit tests look like?
The queries where broken?
Kind of… if you look at the unit test defined in #226 , without the fix, the |
Oh okay, could you add a regression test for this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe the current tests would fail without you fix ?
That's is. Considering the unit test Without my fix, it behaved exactly like the issue's OP described, while with my fix, it's now OK. |
Awesome, ready for a merge |
…es with MySQL-specific commands Co-Authored-By: William Desportes <williamdes@wdes.fr>
Pull-request: #424 Signed-off-by: William Desportes <williamdes@wdes.fr>
Thank you, I rebased your work after adding more test cases in: 049ed2d |
This is an attempt to fix #226 .
If it misses some use-cases to test, please tell me.