commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1143827 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java
Date Thu, 07 Jul 2011 13:52:19 GMT
Author: markt
Date: Thu Jul  7 13:52:19 2011
New Revision: 1143827

URL: http://svn.apache.org/viewvc?rev=1143827&view=rev
Log:
Fix. Problem with r1101837. cacheState was not being set for conenctions obtained via this
factory.

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java?rev=1143827&r1=1143826&r2=1143827&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp2/PoolableConnectionFactory.java
Thu Jul  7 13:52:19 2011
@@ -578,6 +578,7 @@ public class PoolableConnectionFactory i
         if(null != _stmtPoolFactory) {
             KeyedObjectPool stmtpool = _stmtPoolFactory.createPool();
             conn = new PoolingConnection(conn,stmtpool);
+            ((PoolingConnection) conn).setCacheState(_cacheState);
             stmtpool.setFactory((PoolingConnection)conn);
         }
         return new PoolableConnection(conn,_pool,_config);



Mime
View raw message