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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • Client - JDBC
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: