[Mulgara-svn] r451 - trunk/src/jar/itql/java/org/mulgara/itql

pag at mulgara.org pag at mulgara.org
Wed Sep 26 03:34:54 UTC 2007


Author: pag
Date: 2007-09-25 22:34:53 -0500 (Tue, 25 Sep 2007)
New Revision: 451

Modified:
   trunk/src/jar/itql/java/org/mulgara/itql/ItqlInterpreter.java
Log:
Fixed a bug where ending a transaction as the final answer would show an error in the client log

Modified: trunk/src/jar/itql/java/org/mulgara/itql/ItqlInterpreter.java
===================================================================
--- trunk/src/jar/itql/java/org/mulgara/itql/ItqlInterpreter.java	2007-09-24 21:01:42 UTC (rev 450)
+++ trunk/src/jar/itql/java/org/mulgara/itql/ItqlInterpreter.java	2007-09-26 03:34:53 UTC (rev 451)
@@ -2202,7 +2202,11 @@
         // set the auto commit status
         if (session != null) {
           this.getSession().setAutoCommit(optionSet);
-          update();
+          // set the state of a transaction to clean, only if we have just finished a transaction
+          if (!autoCommit && optionSet) {
+            autoCommit = optionSet;
+            update();
+          }
         }
         autoCommit = optionSet;
 




More information about the Mulgara-svn mailing list