Skip to content

MariaDB version parsing evolution #1311

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

Merged
merged 1 commit into from
Apr 20, 2023
Merged

MariaDB version parsing evolution #1311

merged 1 commit into from
Apr 20, 2023

Conversation

rusher
Copy link
Contributor

@rusher rusher commented Apr 20, 2023

fix #1259

Since MariaDB server 11.0.1 (MDEV-28910) doesn't have "5.5.5-" prefix anymore. This PR propose to evolve server identification based on 2 principles:

  • version is stripped of "5.5.5-" prefix and identified as MariaDB (The only server that use 'x.y.z-' prefix is percona, but first percona 5.5 server was 5.5.7). MySQL use "x.y.z", alibaba and aurora use x.y.z.a notation)
  • server version string contains "MariaDB"

(All mariadb connectors use that exact same behavior for mariadb identification)

fix #1259

Since MariaDB server 11.0.1 (MDEV-28910) won't have "5.5.5-" prefix anymore.
This PR propose to evolve server identification accordingly based on 2 principles:
* version is stripped of "5.5.5-" prefix and identified as MariaDB (The only server that use 'x.y.z-' prefix is percona, but first percona 5.5 server was 5.5.7). MySQL use "x.y.z", alibaba and aurora use x.y.z.a notation)
* server version string contains "MariaDB"

(All mariadb connectors use/will use that exact same behavior for mariadb identification)

Signed-off-by: rusher <diego.dupin@gmail.com>
@bgrainger bgrainger merged commit e51e81d into mysql-net:master Apr 20, 2023
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.

Detect new MariaDB version numbers
2 participants