avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Yates <cya...@lanelib.stanford.edu>
Subject Re: JdbcDataSource question: revisited
Date Thu, 17 Jan 2002 20:28:22 GMT
     I made the change to JdbcDataSource.java because my <keep-alive> 
String was being changed to "SELECT 1" from "SELECT 1 FROM DUAL".  Of 
course this is not a major problem. Here is a diff (with -b flag). 

thanks, Charles 


Index: JdbcDataSource.java 
=================================================================== 
RCS file:
/home/cvspublic/jakarta-avalon-excalibur/src/java/org/apache/avalon/excalibur/datasource/JdbcDataSource.java,v

retrieving revision 1.13 
diff -u -b -r1.13 JdbcDataSource.java 
--- JdbcDataSource.java 11 Dec 2001 09:53:28 -0000      1.13 
+++ JdbcDataSource.java 17 Jan 2002 20:15:05 -0000 
@@ -142,7 +142,8 @@ 
                     l_max = max; 
                 } 
             } 
- 
+            if (keepAlive == null) 
+            { 
             if (oradb) 
             { 
                 keepAlive = "SELECT 1 FROM DUAL"; 
@@ -156,6 +157,7 @@ 
             else 
             { 
                 keepAlive = "SELECT 1"; 
+                } 
             } 

             final JdbcConnectionFactory factory = 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message