Index: branches/version-2_13-dev/data/class/SC_Query.php
===================================================================
--- branches/version-2_13-dev/data/class/SC_Query.php	(revision 23124)
+++ branches/version-2_13-dev/data/class/SC_Query.php	(revision 23195)
@@ -201,5 +201,9 @@
     public function commit()
     {
-        return $this->conn->commit();
+        if ($this->inTransaction()) {
+            return $this->conn->commit();
+        } else {
+            return false;
+        }
     }
 
@@ -212,5 +216,9 @@
     public function begin()
     {
-        return $this->conn->beginTransaction();
+        if (!$this->inTransaction()) {
+            return $this->conn->beginTransaction();
+        } else {
+            return false;
+        }
     }
 
@@ -223,5 +231,9 @@
     public function rollback()
     {
-        return $this->conn->rollback();
+        if ($this->inTransaction()) {
+            return $this->conn->rollback();
+        } else {
+            return false;
+        }
     }
 
