Skip to content

Commit 5fd2d73

Browse files
committed
commit() and rollback() methods should return results #41
1 parent 44ded71 commit 5fd2d73

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

MysqliDb.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,9 +1758,10 @@ public function startTransaction()
17581758
*/
17591759
public function commit()
17601760
{
1761-
$this->mysqli()->commit();
1761+
$result = $this->mysqli()->commit();
17621762
$this->_transaction_in_progress = false;
17631763
$this->mysqli()->autocommit(true);
1764+
return $result;
17641765
}
17651766

17661767
/**
@@ -1771,9 +1772,10 @@ public function commit()
17711772
*/
17721773
public function rollback()
17731774
{
1774-
$this->mysqli()->rollback();
1775+
$result = $this->mysqli()->rollback();
17751776
$this->_transaction_in_progress = false;
17761777
$this->mysqli()->autocommit(true);
1778+
return $result;
17771779
}
17781780

17791781
/**

0 commit comments

Comments
 (0)