|
MyBatis Generator uses DatabaseMetaData to introspect databases. Starting with version 3 of the MariaDB driver, we are finding that the driver no longer honors the "nullCatalogMeansCurrent" property. So our introspection runs are returning data from the information_schema where they didn't before.
I can see in the following source that the property is mentions in the JavaDoc, but the code does not actually check the value of the property. Here's the relevant method:
https://github.com/mariadb-corporation/mariadb-connector-j/blob/7ddcd9eea4cd4379cb84638b0a68776165f103dc/src/main/java/org/mariadb/jdbc/DatabaseMetaData.java#L566-L607
Here is the equivalent method in the 2.x line that is respecting the property value:
https://github.com/mariadb-corporation/mariadb-connector-j/blob/28f1269b0df58cd87fbb4fa3e44021e440e34c2f/src/main/java/org/mariadb/jdbc/MariaDbDatabaseMetaData.java#L587-L621
|