[CONJ-46] Create unique JDBC URL protocol for MariaDB Created: 2013-06-18  Updated: 2013-06-18  Resolved: 2013-06-18

Status: Closed
Project: MariaDB Connector/J
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.2

Type: Task Priority: Major
Reporter: Jody Grassel Assignee: Rasmus Johansson (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

I would like to ask the MariaDB development team to consider adding "mariadb" as a JDBC URL protocol, for example "jdbc:mariadb://localhost:3306/test". This would be useful for persistence components that examine the JDBC URL to more easily identify MariaDB and leverage MariaDB's improvements and distinguished capabilities over MySQL.



 Comments   
Comment by Vladislav Vaintroub [ 2013-06-18 ]

This already works

Comment by Vladislav Vaintroub [ 2013-06-18 ]

While it works, the intention was not to easily identify MariaDB. One can easily identify mariadb by examining the version string that server sends during authentication. we know when it is mariadb. The actualy intenion was to run tests easily and compare ConnectorJ and MariaDB JDBC behavior, so to tell one driver from another jdbc:mariadb prefix was used (and ConnectorJ jar was put into classpath before MariaDB JDBC jar).

Comment by Vladislav Vaintroub [ 2013-06-18 ]

External components should be using DatabaseMetaData to detect MariaDB, rather than JDBC URL.
If DatabaseMetaData.getDatabaseProductVersion() contains "MariaDB" , it is MariaDB

Generated at Thu Feb 08 03:12:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.