@@ 2079-2086 (lines=8) @@ | ||
2076 | * |
|
2077 | * @return boolean |
|
2078 | */ |
|
2079 | protected function _beginNested() { |
|
2080 | $query = 'SAVEPOINT LEVEL' . ++$this->_transactionNesting; |
|
2081 | if ($this->fullDebug) { |
|
2082 | $this->logQuery($query); |
|
2083 | } |
|
2084 | $this->_connection->exec($query); |
|
2085 | return true; |
|
2086 | } |
|
2087 | ||
2088 | /** |
|
2089 | * Commit a transaction |
|
@@ 2121-2128 (lines=8) @@ | ||
2118 | * |
|
2119 | * @return boolean |
|
2120 | */ |
|
2121 | protected function _commitNested() { |
|
2122 | $query = 'RELEASE SAVEPOINT LEVEL' . $this->_transactionNesting--; |
|
2123 | if ($this->fullDebug) { |
|
2124 | $this->logQuery($query); |
|
2125 | } |
|
2126 | $this->_connection->exec($query); |
|
2127 | return true; |
|
2128 | } |
|
2129 | ||
2130 | /** |
|
2131 | * Rollback a transaction |
|
@@ 2163-2170 (lines=8) @@ | ||
2160 | * |
|
2161 | * @return boolean |
|
2162 | */ |
|
2163 | protected function _rollbackNested() { |
|
2164 | $query = 'ROLLBACK TO SAVEPOINT LEVEL' . $this->_transactionNesting--; |
|
2165 | if ($this->fullDebug) { |
|
2166 | $this->logQuery($query); |
|
2167 | } |
|
2168 | $this->_connection->exec($query); |
|
2169 | return true; |
|
2170 | } |
|
2171 | ||
2172 | /** |
|
2173 | * Returns the ID generated from the previous INSERT operation. |