You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by dj...@apache.org on 2006/03/15 00:48:10 UTC
svn commit: r385932 -
/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java
Author: djd
Date: Tue Mar 14 15:48:07 2006
New Revision: 385932
URL: http://svn.apache.org/viewcvs?rev=385932&view=rev
Log:
DERBY-1095 (partial) Mark an EmbedStatement as inactive once it sees that its connection has been closed.
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java?rev=385932&r1=385931&r2=385932&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java Tue Mar 14 15:48:07 2006
@@ -1262,7 +1262,11 @@
// getConnection() checks if the Statement is closed
if (!getConnection().isClosed())
return;
-
+
+ // Now this connection is closed for all
+ // future use.
+ active = false;
+
throw Util.noCurrentConnection();
}