Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
VIII
Browse files Browse the repository at this point in the history
  • Loading branch information
mondrake committed Aug 31, 2023
1 parent 656a86f commit c8f9180
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/src/Kernel/mysqli/TransactionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ public function testTransactionWithDdlStatement() {
unset($transaction2);
$transaction3 = $this->connection->startTransaction();
$this->insertRow('row');
// $transaction3->rollBack();
// Note: Difference from MySQL.
// MySQLi will only cleanup the transaction stack on rollback, because the
// rollback will fail since no savepoint is any longer present given the
// auto-commit related to the DDL statement.
$transaction3->rollBack();
unset($transaction3);
unset($transaction);
// $this->assertRowAbsent('row');
$this->assertRowAbsent('row');

// The behavior of a rollback depends on the type of database server.
if ($this->connection->supportsTransactionalDDL()) {
Expand Down

0 comments on commit c8f9180

Please sign in to comment.