https://issues.apache.org/bugzilla/show_bug.cgi?id=50805

--- Comment #2 from Filip Hanik <fha...@apache.org> 2011-02-18 10:52:04 EST ---
Another fix, equally simple could be

Index: java/org/apache/tomcat/jdbc/pool/ConnectionPool.java
===================================================================
--- java/org/apache/tomcat/jdbc/pool/ConnectionPool.java    (revision 1071670)
+++ java/org/apache/tomcat/jdbc/pool/ConnectionPool.java    (working copy)
@@ -1056,6 +1056,12 @@

         public ConnectionFuture(PooledConnection pc) {
             this.pc = pc;
+            try {
+                result = ConnectionPool.this.setupConnection(pc);
+                configured.set(true);
+            }catch (SQLException x) {
+                result = null;
+            }
         }
         /**
          * {@inheritDoc}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to