Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1103

Connector/J Version 3 Does Not Respect "nullCatalogMeansCurrent" Property

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.4
    • 3.4.0
    • metadata
    • None

    Description

      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

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            jeffgbutler Jeff Butler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.