Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
albin3 merged 2 commits intoJavaScriptor:masterfromluizzappa:unicode-extended
Nov 5, 2023

Conversation

luizzappa
Copy link
Contributor

Currently, you cannot name (or alias) a column with certain Latin characters without using quotes, even though this is supported byMySQL syntax. In this PR, I added this.

Parser error:
image

MySQL syntax:

Permitted characters in unquoted identifiers:- ASCII: [0-9,a-z,A-Z$_] (basic Latin letters, digits 0-9, dollar, underscore)- Extended: U+0080 .. U+FFFF

@luizzappaluizzappaforce-pushed theunicode-extended branch 2 times, most recently from31faa6a toc4b243eCompareOctober 22, 2023 18:20
@luizzappa
Copy link
ContributorAuthor

Sorry for the force, there was code that wasn't supposed to be committed

@albin3albin3 added the bug labelOct 31, 2023
@albin3
Copy link
Member

hi,@luizzappa thanks for the pr, it is a serious problem. Could you update this pr like this:

  1. I think there is no need to modify lines insrc/sqlParser.jison which logic is not modified. It will increase review or blame cost in the future.
  2. It seems[a-zA-Z0-9_\u0080-\uFFFF]* return 'IDENTIFIER' is a better pattern, will fix this issue these days.

@luizzappa
Copy link
ContributorAuthor

@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.

https://github.com/JavaScriptor/js-sql-parser/compare/master..10646422beaee247db28c171ca791f2880253a19

albin3 reacted with thumbs up emoji

Copy link
Member

@albin3albin3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@albin3
Copy link
Member

hi@luizzappa , lGTM.

@albin3albin3 merged commitca3c259 intoJavaScriptor:masterNov 5, 2023
@albin3
Copy link
Member

released atjs-sql-parser@1.6.0

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@albin3albin3albin3 approved these changes

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@luizzappa@albin3

[8]ページ先頭

©2009-2025 Movatter.jp