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/datasources SharedPoolDataSource.java PerUserPoolDataSource.java
Date Wed, 20 Oct 2004 20:46:30 GMT
dirkv       2004/10/20 13:46:30

  Modified:    dbcp/src/java/org/apache/commons/dbcp/datasources
                        SharedPoolDataSource.java
                        PerUserPoolDataSource.java
  Log:
  Bugzilla Bug 31811: [DBCP] per-user pooling with Oracle driver and default isolation settings
  - issue fix
  
  Revision  Changes    Path
  1.10      +2 -2      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java
  
  Index: SharedPoolDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SharedPoolDataSource.java	28 Feb 2004 12:18:17 -0000	1.9
  +++ SharedPoolDataSource.java	20 Oct 2004 20:46:30 -0000	1.10
  @@ -210,11 +210,11 @@
       protected void setupDefaults(Connection con, String username)
           throws SQLException {
           con.setAutoCommit(isDefaultAutoCommit());
  -        con.setReadOnly(isDefaultReadOnly());
           int defaultTransactionIsolation = getDefaultTransactionIsolation();
           if (defaultTransactionIsolation != UNKNOWN_TRANSACTIONISOLATION) {
               con.setTransactionIsolation(defaultTransactionIsolation);
           }
  +        con.setReadOnly(isDefaultReadOnly());
       }
   
       /**
  
  
  
  1.11      +2 -2      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java
  
  Index: PerUserPoolDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PerUserPoolDataSource.java	28 Feb 2004 12:18:17 -0000	1.10
  +++ PerUserPoolDataSource.java	20 Oct 2004 20:46:30 -0000	1.11
  @@ -413,10 +413,10 @@
           }
   
           con.setAutoCommit(defaultAutoCommit);
  -        con.setReadOnly(defaultReadOnly);
           if (defaultTransactionIsolation != UNKNOWN_TRANSACTIONISOLATION) {
               con.setTransactionIsolation(defaultTransactionIsolation);
           }
  +        con.setReadOnly(defaultReadOnly);
       }
   
       private PoolKey getPoolKey(String username) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message