Closing a Connection or Statement object twice should be a no-op
Kris Jurka <books@ejurka.com>
Closing a Connection or Statement object twice should be a no-op instead of throwing an Exception. Per report from Victor Sergienko.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java | modified | +8 −1 |
| src/interfaces/jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java | modified | +15 −6 |
| src/interfaces/jdbc/org/postgresql/test/jdbc2/ConnectionTest.java | modified | +11 −1 |
| src/interfaces/jdbc/org/postgresql/test/jdbc2/optional/ConnectionPoolTest.java | modified | +2 −14 |
| src/interfaces/jdbc/org/postgresql/test/jdbc2/optional/PoolingDataSourceTest.java | modified | +24 −1 |