| @@ 601-613 (lines=13) @@ | ||
| 598 | * |
|
| 599 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 600 | */ |
|
| 601 | public function commit() |
|
| 602 | { |
|
| 603 | if ($this->_in_transaction === false) { |
|
| 604 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 605 | ||
| 606 | return false; |
|
| 607 | } |
|
| 608 | ||
| 609 | $return = mysqli_commit($this->link); |
|
| 610 | \mysqli_autocommit($this->link, true); |
|
| 611 | $this->_in_transaction = false; |
|
| 612 | ||
| 613 | return $return; |
|
| 614 | } |
|
| 615 | ||
| 616 | /** |
|
| @@ 1662-1674 (lines=13) @@ | ||
| 1659 | * |
|
| 1660 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 1661 | */ |
|
| 1662 | public function rollback() |
|
| 1663 | { |
|
| 1664 | if ($this->_in_transaction === false) { |
|
| 1665 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 1666 | ||
| 1667 | return false; |
|
| 1668 | } |
|
| 1669 | ||
| 1670 | $return = \mysqli_rollback($this->link); |
|
| 1671 | \mysqli_autocommit($this->link, true); |
|
| 1672 | $this->_in_transaction = false; |
|
| 1673 | ||
| 1674 | return $return; |
|
| 1675 | } |
|
| 1676 | ||
| 1677 | /** |
|