Date: Thursday, June 7, 2007 @ 17:37:07
  Author: marc
    Path: /cvsroot/carob/carob/include

Modified: Connection.hpp (1.86 -> 1.87)

Added forgotten getAutoCommit() method


----------------+
 Connection.hpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletion(-)


Index: carob/include/Connection.hpp
diff -u carob/include/Connection.hpp:1.86 carob/include/Connection.hpp:1.87
--- carob/include/Connection.hpp:1.86   Fri Feb  9 17:52:52 2007
+++ carob/include/Connection.hpp        Thu Jun  7 17:37:07 2007
@@ -194,7 +194,7 @@
    * If a connection is in auto-commit mode, then all its SQL statements will 
be
    * executed and committed as individual transactions. Otherwise, its SQL
    * statements are grouped into transactions that are terminated by either
-   * [EMAIL PROTECTED] #commit()}or [EMAIL PROTECTED] #rollback()}. By 
default, new connections are
+   * [EMAIL PROTECTED] #commit()} or [EMAIL PROTECTED] #rollback()}. By 
default, new connections are
    * in auto-commit mode. The commit occurs when the statement completes or the
    * next execute occurs, whichever comes first. In the case of statements
    * returning a <code>ResultSet</code>, the statement completes when the
@@ -208,6 +208,13 @@
                         throw (SocketIOException, BackendException, 
                         ControllerException, ProtocolException,
                         ConnectionException, UnexpectedException);
+
+  /**
+   * @return false if in transactional mode
+   */
+  bool              getAutoCommit()
+  { return autoCommit; }
+
   /**
    * Makes all changes made since the previous commit/rollback permanent and
    * releases any database locks currently held by the <code>Connection</code>.

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to