Skip to content

Handle non-keyword tokens FORMAT, TREE and VITESS#6445

Merged
systay merged 2 commits intovitessio:masterfrom
systay:format
Jul 15, 2020
Merged

Handle non-keyword tokens FORMAT, TREE and VITESS#6445
systay merged 2 commits intovitessio:masterfrom
systay:format

Conversation

@systay
Copy link
Copy Markdown
Collaborator

@systay systay commented Jul 15, 2020

In 427f3c2, we introduced new tokens for FORMAT, TREE and VITESS. I missed adding these as non-reserved keywords, which made them inaccessible as identifiers.

  SELECT tree, format, vitess FROM test

is perfectly valid SQL, but became illegal with 427f3c2.

Signed-off-by: Andres Taylor <andres@planetscale.com>
@systay systay requested a review from sougou as a code owner July 15, 2020 06:14
@systay systay added the Bug fix label Jul 15, 2020
Signed-off-by: Andres Taylor <andres@planetscale.com>
@systay systay changed the title allow FORMAT as an identifier Handle non-keyword tokens FORMAT, TREE and VITESS Jul 15, 2020
@systay systay merged commit c8a5beb into vitessio:master Jul 15, 2020
@harshit-gangal harshit-gangal deleted the format branch July 17, 2020 16:36
@deepthi deepthi added this to the v7.0 milestone Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants