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

Added tokenizer support for NCHAR_STRING #9006

Merged
merged 5 commits into from
Oct 20, 2021

Conversation

ritwizsinha
Copy link
Contributor

Signed-off-by: ritwizsinha ritwizsinha0@gmail.com

Description

This PR adds support for N'string literal' by adding token NCHAR_STRING in the tokenizer

Related Issue(s)

Fixes #8864

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: ritwizsinha <ritwizsinha0@gmail.com>
@ritwizsinha ritwizsinha added Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature) labels Oct 15, 2021
Signed-off-by: ritwizsinha <ritwizsinha0@gmail.com>
@ritwizsinha ritwizsinha marked this pull request as draft October 15, 2021 16:32
@ritwizsinha ritwizsinha marked this pull request as ready for review October 17, 2021 14:11
Signed-off-by: ritwizsinha <ritwizsinha0@gmail.com>
@systay
Copy link
Collaborator

systay commented Oct 18, 2021

needs to fix the conflicts

go/vt/sqlparser/token.go Show resolved Hide resolved
Signed-off-by: ritwizsinha <ritwizsinha0@gmail.com>
Copy link
Member

@frouioui frouioui left a comment

Choose a reason for hiding this comment

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

LGTM! Shouldn't we also add a plan test that uses this new token?

Signed-off-by: Manan Gupta <manan@planetscale.com>
@GuptaManan100 GuptaManan100 merged commit f4dfa41 into vitessio:main Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sql parser error with N'string literal'
4 participants