| @@ 610-622 (lines=13) @@ | ||
| 607 | * |
|
| 608 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 609 | */ |
|
| 610 | public function commit() |
|
| 611 | { |
|
| 612 | if ($this->_in_transaction === false) { |
|
| 613 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 614 | ||
| 615 | return false; |
|
| 616 | } |
|
| 617 | ||
| 618 | $return = mysqli_commit($this->link); |
|
| 619 | \mysqli_autocommit($this->link, true); |
|
| 620 | $this->_in_transaction = false; |
|
| 621 | ||
| 622 | return $return; |
|
| 623 | } |
|
| 624 | ||
| 625 | /** |
|
| @@ 1675-1687 (lines=13) @@ | ||
| 1672 | * |
|
| 1673 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 1674 | */ |
|
| 1675 | public function rollback() |
|
| 1676 | { |
|
| 1677 | if ($this->_in_transaction === false) { |
|
| 1678 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 1679 | ||
| 1680 | return false; |
|
| 1681 | } |
|
| 1682 | ||
| 1683 | $return = \mysqli_rollback($this->link); |
|
| 1684 | \mysqli_autocommit($this->link, true); |
|
| 1685 | $this->_in_transaction = false; |
|
| 1686 | ||
| 1687 | return $return; |
|
| 1688 | } |
|
| 1689 | ||
| 1690 | /** |
|