[
https://issues.apache.org/jira/browse/DBCP-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Steitz resolved DBCP-23.
-----------------------------
Resolution: Fixed
Fixed in r 557176.
> [dbcp] SQLException When PoolablePreparedStatement Already Closed
> -----------------------------------------------------------------
>
> Key: DBCP-23
> URL: https://issues.apache.org/jira/browse/DBCP-23
> Project: Commons Dbcp
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Operating System: All
> Platform: All
> Reporter: JZ
> Fix For: 1.3
>
> Attachments: issue32441.patch, patch.txt
>
>
> When closing an already closed
> org.apache.commons.dbcp.PoolablePreparedStatement, a SQLException is thrown
> when
> the isClosed() method returns true.
> This seems to violate the contract of java.sql.Statement (super interface of
> implemented PreparedStatement) whose javadoc reads " Calling the method close
> on
> a Statement object that is already closed has no effect."
> Work around exists -- when ever closing a statement, also null out. Then,
> before closing, check that it's non-null.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]