db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r370930 - /db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java
Date Fri, 20 Jan 2006 23:50:29 GMT
Author: mvdb
Date: Fri Jan 20 15:50:25 2006
New Revision: 370930

URL: http://svn.apache.org/viewcvs?rev=370930&view=rev
Log:
Don't get the connection in closeStatement, since that triggers an exception like "Connection
is already closed". Just close the statement, which will (according to jdbc docs) have not
effect.

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java?rev=370930&r1=370929&r2=370930&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/util/JdbcSupport.java Fri Jan 20 15:50:25
2006
@@ -207,12 +207,7 @@
         {
             try
             {
-                Connection conn = statement.getConnection();
-
-                if ((conn != null) && !conn.isClosed())
-                {
-                    statement.close();
-                }
+                statement.close();
             }
             catch (Exception e)
             {



Mime
View raw message