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

fix: add "UNDERSCORE_CHARSET hexLit/bitLit" in Literal #926

Merged
merged 4 commits into from
Sep 15, 2020

Conversation

wangggong
Copy link
Contributor

Signed-off-by: Wang Ruichao [email protected]

What problem does this PR solve?

Close #451 , cc pingcap/tidb#14800

Bad SQL

select _utf8 0xD0B1, _utf8 X'D0B1';
select _utf8 0b1101000010110001, _utf8 B'1101000010110001';

What is changed and how it works?

Add "UNDERSCORE_CHARSET hexLit/bitLit" in Literal.

Check List

Tests

  • Unit test

@codecov
Copy link

codecov bot commented Jul 12, 2020

Codecov Report

Merging #926 into master will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #926      +/-   ##
==========================================
- Coverage   78.43%   78.40%   -0.04%     
==========================================
  Files          40       40              
  Lines       14897    14805      -92     
==========================================
- Hits        11685    11608      -77     
+ Misses       2521     2506      -15     
  Partials      691      691              

Copy link
Contributor

@kennytm kennytm left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot
Copy link
Contributor

@kennytm,Thanks for your review.

@CLAassistant
Copy link

CLAassistant commented Sep 1, 2020

CLA assistant check
All committers have signed the CLA.

@kennytm kennytm added the status/LGT1 LGT1 label Sep 1, 2020
tangenta
tangenta previously approved these changes Sep 10, 2020
Copy link
Contributor

@tangenta tangenta left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot removed the status/LGT1 LGT1 label Sep 10, 2020
ti-srebot
ti-srebot previously approved these changes Sep 10, 2020
@ti-srebot ti-srebot added the status/LGT2 LGT2 label Sep 10, 2020
@tangenta
Copy link
Contributor

@wangggong Please regenerate the parser.go to resolve the conflicts.

@wangggong wangggong dismissed stale reviews from ti-srebot and tangenta via 828ab35 September 10, 2020 14:33
@wangggong
Copy link
Contributor Author

@wangggong Please regenerate the parser.go to resolve the conflicts.

@tangenta done, thx

PTAL

@ti-srebot ti-srebot added status/LGT3 LGT3. This PR looks very good to our bot. and removed status/LGT2 LGT2 labels Sep 15, 2020
@zimulala zimulala merged commit 2050748 into pingcap:master Sep 15, 2020
tiancaiamao pushed a commit to tiancaiamao/parser that referenced this pull request Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT3 LGT3. This PR looks very good to our bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hex & bit literals are not allowed to follow with UNDERSCORE_CHARSET
6 participants