[CONJ-1119] MariaDB 10.3 on Azure is recognized as MySQL 5.6.47 Created: 2023-10-27 Updated: 2023-11-16 Resolved: 2023-11-16 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | metadata |
| Affects Version/s: | 3.2.0, 3.1.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Lorenzo Peri | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
I'm using the Azure Database for MariaDB service which runs a MariaDB 10.3 instance. The problem is that the MariaDB Connector detects the DB as MySQL 5.6.47.0
The getDatabaseProductName method will return "MySQL" instead of "MariaDB". Hibernate 6 will then read such metadata and emit the following warning:
You can see in the picture that 5.6.47 is compared with 10.3 (the minimum) and found to be lower:
The fix would be MariaDB Connector recognizing the DB for what it is: MariaDB 10.3. Tested with MariaDB Connector 3.1.4 and 3.2.0. |
| Comments |
| Comment by Diego Dupin [ 2023-10-27 ] | |||
|
Could you send wireshark dump or set logger "org.mariadb.jdbc" to trace, something like :
depending of your logger ? | |||
| Comment by Lorenzo Peri [ 2023-11-01 ] | |||
|
This is the log at trace level. Let me know if you also need the wireshark dump. Note about sensible data: I'm not sure if the password is also logged, but I used a different temporary password just to be sure, | |||
| Comment by Diego Dupin [ 2023-11-06 ] | |||
|
According to the trace you've send, this is really a mysql server => server handshake doesn't have any of mariadb capabilities flag set. | |||
| Comment by Lorenzo Peri [ 2023-11-06 ] | |||
|
Thanks Diego, I guess you can close the ticket. |