Derby
  1. Derby
  2. DERBY-30

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.2.0
    • Fix Version/s: 10.0.2.0
    • Component/s: JDBC
    • Labels:
      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

        Activity

        Hide
        Daniel John Debrunner added a comment -

        Fixed by Committed revision 53822.

        Show
        Daniel John Debrunner added a comment - Fixed by Committed revision 53822.

          People

          • Assignee:
            Daniel John Debrunner
            Reporter:
            Daniel John Debrunner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development