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

ResultSetMetaData column labels returned in lowercase

    XMLWordPrintable

Details

    Description

      The MariaDB JDBC driver returns ResultSetMetaData columns labels in lowercase, which is incompatible with how other JDBC drivers behave.

              try (ResultSet rs = connection.getMetaData().getSchemas(null, null)) {
                  ResultSetMetaData resultSetMetaData = rs.getMetaData();
                  System.out.println(resultSetMetaData.getColumnName(1));
                  System.out.println(resultSetMetaData.getColumnName(2));
              }
      

      Result:

      table_schem
      table_catalog
      

      Note that the MySQL driver returns:

      TABLE_SCHEM
      TABLE_CATALOG
      

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            sPrecisely S. H.
            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.