[CONJ-654] DatabaseMetaData.getDriverName() returns connector/J with a lowercase c Created: 2018-10-04 Updated: 2019-03-18 Resolved: 2019-01-15 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | metadata |
| Affects Version/s: | 2.3.0 |
| Fix Version/s: | 1.8.0, 2.4.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Anders Karlsson | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The following java code returns the string "Driver Name = MariaDB connector/J" instead of the correct "Driver Name = MariaDB Connector/J"
|
| Comments |
| Comment by Diego Dupin [ 2018-10-05 ] |
|
Changed for next version. Check that hibernate doesn't rely on name for automatic Dialect resolver, and it rely on first part only (that getDriverName start with "MariaDB" |
| Comment by Maksym Tykhenko [ 2019-02-23 ] |
|
Many other libraries and products do not yet know Database Type = MariaDB (from metadata point of view) and fail to work with driver 2.4.0 because of change made in org.mariadb.jdbc.MariaDbDatabaseMetaData#getDatabaseProductName (Spring Batch, JQM, etc.) Is it possible to get some flag to preserve compatibility with other 3rd party libraries? Probably, minor release with such a feature would be helpful. |
| Comment by Diego Dupin [ 2019-03-18 ] |
|
Hi mtykhenko, an option in 2.4.1 named "useMysqlMetadata" permit to force databaseMetaData.getDatabaseProductName() to return "MySQL" (default now return "MariaDB" or "MySQL" according to server type) . This option permits compatibility with frameworks that doesn't support "MariaDB" type. |