Skip to content

fix(packets): parse MariaDB Enterprise version strings - #196

Merged
blackbeam merged 1 commit into
blackbeam:masterfrom
DavidBM:fix/mariadb-enterprise-version-regex
Oct 7, 2026
Merged

blackbeam merged 1 commit into
blackbeam:masterfrom
DavidBM:fix/mariadb-enterprise-version-regex

Conversation

@DavidBM

@DavidBM DavidBM commented Oct 7, 2026

Copy link
Copy Markdown

MariaDB Enterprise reports its version with a build number between the patch level and the -MariaDB marker, e.g. 10.6.25-21-MariaDB-enterprise-log.

MARIADB_VERSION_RE required -MariaDB to immediately follow major.minor.patch, so HandshakePacket::maria_db_server_version_parsed() returned None for these strings and clients misdetected the server as MySQL (for the 5.5.5- prefixed form, as MySQL 5.5.5).

Allow an optional -<digits> build number before -MariaDB and add a test covering Enterprise, plain MariaDB and non-MariaDB version strings.

MariaDB Enterprise reports its version with a build number between the
patch level and the `-MariaDB` marker, e.g. `10.6.25-21-MariaDB-enterprise-log`.
MARIADB_VERSION_RE required `-MariaDB` to immediately follow
`major.minor.patch`, so `HandshakePacket::maria_db_server_version_parsed()`
returned `None` for these strings and clients mis-detected the server as
MySQL (for the `5.5.5-` prefixed form, as MySQL 5.5.5).

Allow an optional `-<digits>` build number before `-MariaDB` and add a
test covering Enterprise, plain MariaDB and non-MariaDB version strings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@blackbeam
blackbeam merged commit 81f84c4 into blackbeam:master Oct 7, 2026
1 check passed
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