Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.2.0
-
None
Description
Already fixed in CONJ-167
When using a connection URL with a specific HA mode (e.g. jdbc:mariadb:failover://host/db) this is not recognized by org.mariadb.jdbc.Driver.acceptsURL(String url).
This is a severe for DriverManager.getDriver(String url) as it relies on this method to function properly.
Current broken code that needs to accept a HA-URL:
class org.mariadb.jdbc.JDBCUrl |
static boolean acceptsURL(String url) {
|
return (url != null) &&
|
(url.startsWith("jdbc:mariadb://") || url.startsWith("jdbc:mysql://"));
|
 |
}
|