-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -2022,7 +2022,7 @@ public function truncate($table) { | ||
* | * | ||
* @return boolean | * @return boolean | ||
*/ | */ | ||
protected function _supportNestedTransaction() { | public function supportNestedTransaction() { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
AD7six
Member
|
|||
return false; | return false; | ||
} | } | ||
|
|
||
|
@@ -2035,7 +2035,7 @@ protected function _supportNestedTransaction() { | ||
*/ | */ | ||
public function begin() { | public function begin() { | ||
if ($this->_transactionStarted) { | if ($this->_transactionStarted) { | ||
if ($this->_supportNestedTransaction()) { | if ($this->supportNestedTransaction()) { | ||
return $this->_beginNested(); | return $this->_beginNested(); | ||
} | } | ||
$this->_transactionNesting++; | $this->_transactionNesting++; | ||
|
@@ -2083,7 +2083,7 @@ public function commit() { | ||
return $this->_connection->commit(); | return $this->_connection->commit(); | ||
} | } | ||
|
|
||
if ($this->_supportNestedTransaction()) { | if ($this->supportNestedTransaction()) { | ||
return $this->_commitNested(); | return $this->_commitNested(); | ||
} | } | ||
|
|
||
|
@@ -2125,7 +2125,7 @@ public function rollback() { | ||
return $this->_connection->rollBack(); | return $this->_connection->rollBack(); | ||
} | } | ||
|
|
||
if ($this->_supportNestedTransaction()) { | if ($this->supportNestedTransaction()) { | ||
return $this->_rollbackNested(); | return $this->_rollbackNested(); | ||
} | } | ||
|
|
||
|
A more grammatically correct name for the function would be
$supportsNestedTransaction()
("supports" with an "s")Edit:
$supportsNestedTransaction()
should readsupportsNestedTransaction()
:)