asyncer-io / r2dbc-mysql

Reactive Relational Database Connectivity for MySQL. The official successor to mirromutth/r2dbc-mysql(dev.miku:r2dbc-mysql).
https://r2dbc.io
Apache License 2.0
196 stars 21 forks source link

Check and remove MariaDB 10.x fake prefix in version #203

Closed mirromutth closed 8 months ago

mirromutth commented 8 months ago

MariaDB 10.x has a replication hack that sends a prefixed version 5.5.5- in the handshake. e.g. 5.5.5-10.6.6-MariaDB

Check the replication hack and remove fake prefix in ServerVersion#parse.

Consider adding a boolean property to ServerVersion to check if the server is MariaDB instead of just checking via capabilities.

See also r2dbc-mariadb does

jchrys commented 8 months ago

for future ref