Modified:
branches/branch_5_1/src/com/mysql/jdbc/ServerPreparedStatement.java
Log:
Don't try and re-cache on double close.
Modified: branches/branch_5_1/src/com/mysql/jdbc/ServerPreparedStatement.java
===================================================================
--- branches/branch_5_1/src/com/mysql/jdbc/ServerPreparedStatement.java 2008-02-27 05:34:59 UTC (rev 6740)
+++ branches/branch_5_1/src/com/mysql/jdbc/ServerPreparedStatement.java 2008-02-27 14:47:20 UTC (rev 6741)
@@ -585,7 +585,7 @@
* @see java.sql.Statement#close()
*/
public synchronized void close() throws SQLException {
- if (this.isCached) {
+ if (this.isCached && !this.isClosed) {
clearParameters();
this.isClosed = true;
| Thread |
|---|
| • Connector/J commit: r6741 - branches/branch_5_1/src/com/mysql/jdbc | mmatthews | 27 Feb |