Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1060

ResultSet methods should throw exception when the ResultSet is closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.1.6
    • 10.2.1.6
    • JDBC, Network Client
    • None

    Description

      The JDBC 4 spec says:

      Once a ResultSet has been closed, any attempt to access any of its
      methods with the exception of the isClosed method will result in a
      SQLException being thrown.

      This is not always the case in Derby, and the behaviour is not the
      same on the client driver and the embedded driver.

      The following ResultSet methods do not throw an exception when the
      result set is closed:

      Client driver:

      clearWarnings()
      close()
      getMetaData()
      getStatement()
      getWarnings()

      Embedded driver:

      close()
      getConcurrency()
      getRow()
      getStatement()
      getType()
      rowDeleted()
      rowInserted()
      rowUpdated()
      setFetchDirection()
      getFetchDirection()
      setFetchSize()
      getFetchSize()

      Attachments

        1. derby1060-v1.diff
          13 kB
          Knut Anders Hatlen
        2. derby1060-v1.stat
          0.2 kB
          Knut Anders Hatlen
        3. derbyall_report.txt
          4 kB
          Knut Anders Hatlen

        Activity

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: