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

implementing CHAR() function #2255

Merged
merged 15 commits into from
Jan 17, 2024
Merged

implementing CHAR() function #2255

merged 15 commits into from
Jan 17, 2024

Conversation

jycor
Copy link
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
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
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
7 checks passed
@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