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

Connection.close() method inconsistently throws exception on closed connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.0.2.0
    • 10.0.2.0
    • JDBC
    • None

    Description

      JDBC 3.0 Javadoc for java.sql.Connection.close() states

      "Calling the method close on a Connection object that is already closed is a no-op."

      In Derby embedded calling close on a closed connection from the DriverManager or EmbeddedDataSource incorrectly throws XJ012.

      Calling close on a closed connection from a ConnectionPoolDataSource or XADataSource for Derby correctly returns correctly (no-op).

      Similar issue for Statement.close() - needs to be a no-op on a closed Statement/PreparedStatement/CallableStatement

      Attachments

        Activity

          People

            djd Daniel John Debrunner
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: