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

use @@session.collation_server during create database ... #2426

Merged
merged 4 commits into from Apr 2, 2024
Merged

Conversation

jycor
Copy link
Contributor

@jycor jycor commented Mar 30, 2024

This PR makes it so create database ... actually reads the @@session.collation_server variable.
Additionally, this ensures that settings @@character_set_server sets @@collation_server and vice versa.

Interestingly, it seems like MySQL actually ignores the global scope of these system variables, and reads the session scope instead.

fixes dolthub/dolt#7651

@jycor jycor requested a review from Hydrocharged April 1, 2024 17:38
Copy link
Contributor

@Hydrocharged Hydrocharged left a comment

Choose a reason for hiding this comment

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

LGTM!

@jycor jycor merged commit 5a671f6 into main Apr 2, 2024
7 checks passed
@jycor jycor deleted the james/db branch April 2, 2024 17:46
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.

set global character_set_server not working the same way in MySQL, may lead inconsistency
2 participants