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

Calling getObject on a closed ResultSet object should throw a SQLException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: Client - JDBC
    • Labels:
      None

      Description

      git.commit.id.abbrev=e92db23

      The following sequence should throw a SQLException according to the JDBC specification. However drill's jdbc code does not throw an error

      ResultSet rs = stmt.executeQuery("SELECT 1 FROM sys.version");
      rs.close();
      rs.getObject(1);
      

        Attachments

        1. DRILL-2447.BASE.1.patch.txt
          23 kB
          Daniel Barclay
        2. DRILL-2447.2.patch.txt
          90 kB
          Daniel Barclay
        3. DRILL-2447.1.patch.txt
          90 kB
          Daniel Barclay

          Issue Links

            Activity

              People

              • Assignee:
                dsbos Daniel Barclay
                Reporter:
                rkins Rahul Challapalli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: