Author: bayard
Date: Fri Aug 19 06:20:15 2011
New Revision: 1159513

URL: http://svn.apache.org/viewvc?rev=1159513&view=rev
Log:
Removing unnecessary connection closing per DBUTILS-78

Modified:
    
commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java

Modified: 
commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
URL: 
http://svn.apache.org/viewvc/commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java?rev=1159513&r1=1159512&r2=1159513&view=diff
==============================================================================
--- 
commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
 (original)
+++ 
commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
 Fri Aug 19 06:20:15 2011
@@ -161,8 +161,6 @@ public class AsyncQueryRunner extends Ab
      */
     private Callable<int[]> batch(Connection conn, boolean closeConn, String 
sql, Object[][] params) throws SQLException {
        if(conn == null) {
-               if(closeConn)
-                       close(conn);
                throw new SQLException("Null connection");
        }
        
@@ -259,8 +257,6 @@ public class AsyncQueryRunner extends Ab
         Callable<T> ret = null;
 
        if(conn == null) {
-               if(closeConn)
-                       close(conn);
                throw new SQLException("Null connection");
        }
        
@@ -407,8 +403,6 @@ public class AsyncQueryRunner extends Ab
         Callable<Integer> ret = null;
 
        if(conn == null) {
-               if(closeConn)
-                       close(conn);
                throw new SQLException("Null connection");
        }
        


Reply via email to