commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp PoolableConnectionFactory.java
Date Sat, 20 Sep 2003 16:59:15 GMT
dirkv       2003/09/20 09:59:15

  Modified:    dbcp/src/java/org/apache/commons/dbcp
                        PoolableConnectionFactory.java
  Log:
  Bugzilla Bug 23293: setAutoCommit(true) when returning connection to the pool
  - Giving a hint to the database driver that you don't need long running
  transactions
  
  Revision  Changes    Path
  1.14      +4 -3      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java
  
  Index: PoolableConnectionFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- PoolableConnectionFactory.java	20 Sep 2003 14:28:54 -0000	1.13
  +++ PoolableConnectionFactory.java	20 Sep 2003 16:59:15 -0000	1.14
  @@ -362,6 +362,7 @@
                   conn.rollback();
               }
               conn.clearWarnings();
  +            conn.setAutoCommit(true);
           }
           if(obj instanceof DelegatingConnection) {
               ((DelegatingConnection)obj).passivate();
  
  
  

Mime
View raw message