Commons Dbcp
  1. Commons Dbcp
  2. DBCP-233

Allow connection, statement, and result set to be closed multiple times

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Labels:
      None

      Description

      This patch allows Connection, Statement, PreparedStatement, CallableStatement and ResultSet to be closed multiple times. The first time close is called the resource is closed and any subsequent calls have no effect. This behavior is required as per the JavaDocs for these classes. The patch adds tests for closing all types multiple times and updates any tests that incorrectly assert that a resource can be closed more then once.

      This patch fixes DBCP-134 and DBCP-3

      1. CloseTwice.patch
        13 kB
        Dain Sundstrom

        Activity

        Dain Sundstrom created issue -
        Dain Sundstrom made changes -
        Field Original Value New Value
        Attachment CloseTwice.patch [ 12361950 ]
        Phil Steitz made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Phil Steitz made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Phil Steitz made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Phil Steitz made changes -
        Link This issue is related to DBCP-398 [ DBCP-398 ]
        Phil Steitz made changes -
        Link This issue is related to DBCP-398 [ DBCP-398 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Dain Sundstrom
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development