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

Latest commit

 

History

History
25 lines (17 loc) · 1.26 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.26 KB

This module was incubated here, but now development and implementation moved to Drupal core issue queue. See https://www.drupal.org/project/drupal/issues/3259709.

mysqli

PHPUnit Testing

A Drupal database driver module for MySQLi.

For Drupal 11.x, with minimum PHP version: 8.1.3

Requires patches for the following issues to be applied:

Issue Description
#3110546 Allow contributed modules (mostly database drivers) to override tests in core

Known issues

  • mysqli::rollback() returns TRUE if there's no active transaction. This is diverging from PDO MySql. TransactionTest::testTransactionWithDdlStatement() fails for this reason. A PHP bug report exists, https://bugs.php.net/bug.php?id=81533.
  • Apparently, mysqli::rollback(0, 'savepoint-1') does not respect the savepoint passed in, and rolls back the entire transaction. I had to revert to using mysqli::query('ROLLBACK TO SAVEPOINT savepoint-1') to get transaction tests pass. Could not find reported bugs for this.