Details
-
Task
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
MariaDB driver accept connection string begining with "jdbc:mariadb:" and "jdbc:mysql:".
so when DriverManager call registred driver for an url, if MySQL driver is in classpath, Driver will randomly return a MySQL or MariaDB Driver.
Goal is to permit having MariaDB and MySQL driver are in same classpath for good reason (testing, benchmark, ...).
Driver.acceptsUrl(String url) must return false for connection string beginning with "jdbc:mysql" AND containing "disableMariaDbDriver".
So when MySQL AND MariaDB drivers are on same classpath, DriverManager.getConnection("jdbc:mysql://localhost/db?user=root&disableMariaDbDriver") will always return a connection using MySQL driver
Attachments
Issue Links
- is part of
-
CONJ-421 Spark error: java.sql.SQLException: Out of range value for column 'i' : value i is not in Integer range
- Closed