Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2128

DatabaseMetaData.getColumns()'s DATA_TYPE has wrong type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: Client - JDBC
    • Labels:
      None

      Description

      The DATA_TYPE column in the result set returned by DatabaseMetaData.getColumns(...) contains type names instead of integer type codes from java.sql.Types.

      Additionally, column TYPE_NAME is missing.

      (See the result set table description in http://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html#getColumns-java.lang.String-java.lang.String-java.lang.String-java.lang.String-.)

        Attachments

        1. DRILL-2128-2Core.1.patch.txt
          15 kB
          Daniel Barclay
        2. DRILL-2128-1Prep.1.patch.txt
          5 kB
          Daniel Barclay

          Issue Links

            Activity

              People

              • Assignee:
                dsbos Daniel Barclay
                Reporter:
                dsbos Daniel Barclay
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: