Skip to content

implementing CHAR() function#2255

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

implementing CHAR() function#2255
jycor merged 15 commits intomainfrom
james/char

Conversation

@jycor
Copy link
Copy Markdown
Contributor

@jycor jycor commented Jan 12, 2024

This PR implements most of CHAR() functionality.
Additionally, this fixes an overflow issue with UINT32 and UINT64

By default, we display Bit Strings in utf8mb4, while you need to use USING in MySQL.
Without USING the bit strings are supposed to show up as hexadecimal values.

MySQL Docs: https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_char

Copy link
Copy Markdown
Contributor

@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.

Code looks good! Only reason I didn't approve yet was because I wanted to hear how much work was left to support the USING clause. Seems like we're really close and may make sense to just go ahead and knock it out, but let me know if it's more complicated than I'm thinking.

Copy link
Copy Markdown
Contributor

@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.

Very nice! Looks like this just needs some tests using USING, and then it should be good to go.

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