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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: