Skip to content

MariaDB version parsing evolution - #1311

Merged
bgrainger merged 1 commit into
mysql-net:masterfrom
rusher:mariadb-identification
Apr 20, 2023
Merged

MariaDB version parsing evolution#1311
bgrainger merged 1 commit into
mysql-net:masterfrom
rusher:mariadb-identification

Conversation

@rusher

@rusher rusher commented Apr 20, 2023

Copy link
Copy Markdown
Contributor

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

3 participants