-
Notifications
You must be signed in to change notification settings - Fork 46
feat(): unicode extended char support for column name or alias #58
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
Conversation
31faa6a
to
c4b243e
Compare
Sorry for the force, there was code that wasn't supposed to be committed
hi, @luizzappa thanks for the pr, it is a serious problem. Could you update this pr like this:
- I think there is no need to modify lines in
src/sqlParser.jison
which logic is not modified. It will increase review or blame cost in the future. - It seems
[a-zA-Z0-9_\u0080-\uFFFF]* return 'IDENTIFIER'
is a better pattern, will fix this issue these days.
3ff5bc5
to
1064642
Compare
@albin3, Done. In my first commit I had indented the other lines to maintain the formatting, with this smaller pattern suggested by you I didn't need to do that, thanks.
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.
LGTM
hi @luizzappa , lGTM.
released at js-sql-parser@1.6.0
Currently, you cannot name (or alias) a column with certain Latin characters without using quotes, even though this is supported by MySQL syntax. In this PR, I added this.
Parser error:
image
MySQL syntax: