db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r385932 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java
Date Tue, 14 Mar 2006 23:48:10 GMT
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();
 	}
 



Mime
View raw message