commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1159513 - /commons/proper/dbutils/trunk/src/java/org/apache/commons/dbutils/AsyncQueryRunner.java
Date Fri, 19 Aug 2011 06:20:15 GMT
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");
     	}
     	



Mime
View raw message