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

Avoid SET NAMES commands if not needed #1497

Merged
merged 7 commits into from
Jul 17, 2024
Merged

Avoid SET NAMES commands if not needed #1497

merged 7 commits into from
Jul 17, 2024

Conversation

bgrainger
Copy link
Member

Based on #1494.

rusher and others added 2 commits July 15, 2024 12:31
for MariaDB since 15.1 (https://jira.mariadb.org/browse/MDEV-31609) followed session variables are sent in initial OK_Packet. This permits to avoids  initial query SET NAMES command, since charset is really know, defaulting to server corresponding default collation.

Signed-off-by: rusher <diego.dupin@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
@bgrainger bgrainger force-pushed the avoid-set-names branch 2 times, most recently from 2db1bd4 to ef40088 Compare July 17, 2024 03:43
Move mutable properties back to ServerSession.

Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
This is still tracked as an Int32 internally so there seems to be no need to log it as an Int64.

Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
This avoids an unnecessary small allocation per ServerSession.

Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
Signed-off-by: Bradley Grainger <bgrainger@gmail.com>
@bgrainger bgrainger merged commit aeaf900 into master Jul 17, 2024
23 checks passed
@bgrainger bgrainger deleted the avoid-set-names branch July 17, 2024 06:02
@bgrainger
Copy link
Member Author

Fixed in 2.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants