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

sql/parser: fix <TYPE> '<value>' literal casts #22397

Merged

Conversation

nvanbenschoten
Copy link
Member

Fixes #22390.

Our grammar had confused const_typename and simple_typename, which
was preventing us from properly parsing literal casts.
This change fixes that.

Release note (bug fix): literal casts now work correctly
for all fixed-length types.

Fixes cockroachdb#22390.

Our grammar had confused `const_typename` and `simple_typename`, which
was preventing us from properly parsing <TYPE> <value> literal casts.
This change fixes that.

Release note (bug fix): <TYPE> <value> literal casts now work correctly
for all fixed-length types.
@nvanbenschoten nvanbenschoten requested review from knz and a team February 6, 2018 00:03
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jordanlewis
Copy link
Member

:lgtm: thanks for fixing this. This has bothered me for a while.


Review status: 0 of 3 files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from Reviewable

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

thanks!

@nvanbenschoten nvanbenschoten merged commit 8ae9a48 into cockroachdb:master Feb 6, 2018
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/inetCast branch February 6, 2018 00:58
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.

sql: INET <value> literal cast does not work
4 participants