Skip to content

Conversation

@lawrinn
Copy link
Contributor

@lawrinn lawrinn commented Jul 7, 2025

This is the part of the implementation of the Issue#401
The solution requires changes to both mysql_common and to mysql-simple/async. This is the part for the common, obviously.
The change is independent and does not require changes in simple/async. Both can be built with it and tests pass without changes.

The patch is defining MariadbCapabilities completely in analogy with standard client capability flags. MariadbCapabilities contains all existing to the moment MariaDB specific/extended capabilities.

Also adding new constructor for HandshakeResponse class to assemble the packet with MariaDB extended capabilities.

I'd probably like to hear comments to this one before submitting the counterpart for simple.

The PR is submitted on behalf of my employer, MariaDB Corporation plc. We are planning further support and implement MariaDB specific features.

Defining MariadbCapabilities completely like standard client
capability flags. MariadbCapabilities contains all exsisting to the
moment MariaDB specific/extended capabilities.

Also adding new constructor for HandshakeResponse class to assemble the
packet with MariaDB extended capabilities.
@lawrinn lawrinn changed the title Issue#401 Adding required definitions for MariaDB metadata skipping(https://github.com/blackbeam/rust-mysql-simple/issues/401) Issue#401 Adding required definitions for MariaDB metadata skipping Jul 7, 2025
lawrinn added 2 commits July 24, 2025 16:20
extended capabilities.

Also fixed Handshake's serialize method to write them if they are
present.
@blackbeam blackbeam merged commit 1b8164e into blackbeam:master Jul 29, 2025
1 check passed
blackbeam added a commit that referenced this pull request Jul 31, 2025
blackbeam added a commit that referenced this pull request Jul 31, 2025
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