manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r950471 - /incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/DBInterfaceDerby.java
Date Wed, 02 Jun 2010 10:20:42 GMT
Author: kwright
Date: Wed Jun  2 10:20:42 2010
New Revision: 950471

URL: http://svn.apache.org/viewvc?rev=950471&view=rev
Log:
Make sure we turn autocommit back on when we leave a transactionsvn status

Modified:
    incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/DBInterfaceDerby.java

Modified: incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/DBInterfaceDerby.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/DBInterfaceDerby.java?rev=950471&r1=950470&r2=950471&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/DBInterfaceDerby.java
(original)
+++ incubator/lcf/trunk/modules/framework/core/org/apache/lcf/core/database/DBInterfaceDerby.java
Wed Jun  2 10:20:42 2010
@@ -940,6 +940,7 @@ public class DBInterfaceDerby extends Da
         try
         {
           connection.commit();
+          connection.setAutoCommit(true);
         }
         catch (java.sql.SQLException e)
         {
@@ -964,6 +965,7 @@ public class DBInterfaceDerby extends Da
         try
         {
           connection.rollback();
+          connection.setAutoCommit(true);
         }
         catch (java.sql.SQLException e)
         {



Mime
View raw message