You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2004/06/22 19:40:37 UTC

cvs commit: jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms J2EEStore.java

ozeigermann    2004/06/22 10:40:37

  Modified:    src/stores/org/apache/slide/store/impl/rdbms J2EEStore.java
  Log:
  Applied patch by Ritu Kedia to assure autocommit is set to false
  
  Revision  Changes    Path
  1.12      +9 -5      jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/J2EEStore.java
  
  Index: J2EEStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/stores/org/apache/slide/store/impl/rdbms/J2EEStore.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- J2EEStore.java	11 Feb 2004 11:30:21 -0000	1.11
  +++ J2EEStore.java	22 Jun 2004 17:40:37 -0000	1.12
  @@ -155,6 +155,10 @@
       }
   
       protected Connection getNewConnection() throws SQLException {
  -        return ds.getConnection();
  +        Connection con = ds.getConnection();
  +        boolean autoCommit = con.getAutoCommit();
  +        if (autoCommit)
  +            con.setAutoCommit(false);
  +        return con;
       }
   }
  
  
  

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