From 5fd2d73444175220a5af7919cda7409a1e5e31ba Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sat, 9 Jan 2016 10:21:12 +0300 Subject: [PATCH] commit() and rollback() methods should return results #41 --- MysqliDb.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MysqliDb.php b/MysqliDb.php index 19f5a72e..8a2a7a76 100644 --- a/MysqliDb.php +++ b/MysqliDb.php @@ -1758,9 +1758,10 @@ public function startTransaction() */ public function commit() { - $this->mysqli()->commit(); + $result = $this->mysqli()->commit(); $this->_transaction_in_progress = false; $this->mysqli()->autocommit(true); + return $result; } /** @@ -1771,9 +1772,10 @@ public function commit() */ public function rollback() { - $this->mysqli()->rollback(); + $result = $this->mysqli()->rollback(); $this->_transaction_in_progress = false; $this->mysqli()->autocommit(true); + return $result; } /**