db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: rev 53822 - incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc
Date Tue, 05 Oct 2004 20:21:18 GMT
Author: djd
Date: Tue Oct  5 13:21:17 2004
New Revision: 53822

Modified:
   incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
Log:
Fix derby-30, Connection.close() on a closed connection is defined by JDBC javadoc to be a
no-op.


Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
==============================================================================
--- incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
(original)
+++ incubator/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
Tue Oct  5 13:21:17 2004
@@ -925,8 +925,10 @@
      * @exception SQLException if a database-access error occurs.
      */
     public void close() throws SQLException {
+		// JDK 1.4 javadoc indicates close on a closed connection is a no-op
 		if (isClosed())
-		   	throw newSQLException(SQLState.ALREADY_CLOSED, "Connection");
+		   	return;
+
 
 		if (rootConnection == this)
 		{

Mime
View raw message