Skip to content

Allow SqlType to parse "CHARACTER" and add tests for every other possible type that could be passed in.#294

Merged
nicktobey merged 1 commit intomainfrom
nicktobey/sql
Dec 7, 2023
Merged

Allow SqlType to parse "CHARACTER" and add tests for every other possible type that could be passed in.#294
nicktobey merged 1 commit intomainfrom
nicktobey/sql

Conversation

@nicktobey
Copy link
Copy Markdown

SqlType is a function in Vitess for normalizing every type name. It was missing an entry for the "CHARACTER" keyword.

I added tests that should verify every single valid type keyword in the grammar, so this shouldn't happen again.

@nicktobey nicktobey requested a review from zachmu as a code owner December 7, 2023 01:03
Copy link
Copy Markdown

@jennifersp jennifersp left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing this and adding test for all types.

@nicktobey nicktobey merged commit 88fb354 into main Dec 7, 2023
@nicktobey nicktobey deleted the nicktobey/sql branch December 7, 2023 01:07
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.

2 participants