Skip to content

custom char() syntax handling#300

Merged
jycor merged 3 commits intomainfrom
james/char
Jan 17, 2024
Merged

custom char() syntax handling#300
jycor merged 3 commits intomainfrom
james/char

Conversation

@jycor
Copy link
Copy Markdown

@jycor jycor commented Jan 14, 2024

In order to support the charset argument for CHAR(... using <charset>), there has to be special syntax support.

Companion PR: dolthub/go-mysql-server#2255

@jycor jycor requested a review from zachmu as a code owner January 14, 2024 01:13
Copy link
Copy Markdown

@fulghum fulghum left a comment

Choose a reason for hiding this comment

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

Looks good! Would be nice to have a parse test for CHAR(... USING ...) to test that the USING clause is captured and included in the output from the Format method.

Looks like there's a skipped test related to this that could be removed, now, too:

input: "select CHAR(77,121,83,81,'76' USING utf8mb4) from dual",

@jycor jycor merged commit f926027 into main Jan 17, 2024
@jycor jycor deleted the james/char branch January 17, 2024 06:15
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