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

ResultSetMetaData.getTableName returns table alias instead of real table name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.9
    • Component/s: Other
    • Labels:
      None

      Description

      ResultSetMetaData.getTableName returns table alias instead of real table name in for example following type of query.

      SELECT id FROM t1 AS t1_alias

      Currently ResultSetMetaData.getTableName would return t1_alias.

      ResultSetMetaData.getTableName should return the real table name and this was fixed in the MySQL Connector/J some years back. An URL parameter called useOldAliasMetadataBehavior was introduced if someone wants to continue using the old behaviour.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ratzpo Rasmus Johansson (Inactive)
              Reporter:
              ratzpo Rasmus Johansson (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.