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

parser: add charset validation (TiDB #4436) (#220) #299

Closed
wants to merge 1 commit into from

Conversation

bb7133
Copy link
Member

@bb7133 bb7133 commented Apr 25, 2019

Cherry-pick #220, related TiDB cherry-pick: pingcap/tidb#10263

This cherry-pick aims to solve a known charset issue:

mysql> create database ${SOME_DB} charset ""

Which reports errors in master branch as expected, but shows no error in release-2.1

* Add charset validation in pattern `CharsetName`, and use it in syntax `CONVERT(expr USING transcoding_name)` and `CHAR(N USING charset_name)`.
* Modify `yyLexer` interface to return different types of error.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bb7133 bb7133 requested review from tiancaiamao and lysu April 25, 2019 03:18
@bb7133
Copy link
Member Author

bb7133 commented Apr 25, 2019

PTAL @tiancaiamao @lysu @zz-jason

@bb7133
Copy link
Member Author

bb7133 commented Apr 28, 2019

Close this PR because of the CLA bug

@bb7133 bb7133 closed this Apr 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants