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

Small possible improvement of getCrossReference, getExportedKeys and getImportedKeys

Details

    • Task
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.0
    • metadata
    • None

    Description

      All those functions return hardcoded NULL for PK_NAME. While it could be more accurate and return RC.UNIQUE_CONSTRAINT_NAME for that field. If I am not mistaken - that will work for all those methods

      Attachments

        Activity

          Lawrin Lawrin Novitsky created issue -
          diego dupin Diego Dupin added a comment -

          Right, javadoc permits returning null, but for most of cases, we can return real name.
          This concerns :

          getImportedKeys may still return null when using "SHOW CREATE" implementation (i.e. when catalog is set)

          diego dupin Diego Dupin added a comment - Right, javadoc permits returning null, but for most of cases, we can return real name. This concerns : getCrossReference getExportedKeys getImportedKeys getImportedKeys may still return null when using "SHOW CREATE" implementation (i.e. when catalog is set)
          diego dupin Diego Dupin made changes -
          Field Original Value New Value
          Fix Version/s 2.7.0 [ 24279 ]
          diego dupin Diego Dupin added a comment - see commit https://github.com/mariadb-corporation/mariadb-connector-j/commit/09965c90c480ee245aca24649e2c1bfa58d87de1
          diego dupin Diego Dupin made changes -
          issue.field.resolutiondate 2020-08-24 15:23:45.0 2020-08-24 15:23:45.189
          diego dupin Diego Dupin made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 112148 ] MariaDB v4 [ 128424 ]

          People

            diego dupin Diego Dupin
            Lawrin Lawrin Novitsky
            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.