Commit 9d15ef4f authored by webchick's avatar webchick

#847528 by chx: Fixed rollback presumes transaction support.

parent 5ac86c1e
......@@ -878,6 +878,9 @@ public function startTransaction($name = '') {
* @see DatabaseTransaction::rollback()
*/
public function rollback($savepoint_name = 'drupal_transaction') {
if (!$this->supportsTransactions()) {
return;
}
if (!$this->inTransaction()) {
throw new DatabaseTransactionNoActiveException();
}
......@@ -901,9 +904,7 @@ public function rollback($savepoint_name = 'drupal_transaction') {
return;
}
}
if ($this->supportsTransactions()) {
parent::rollBack();
}
parent::rollBack();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment