Skip to content
Snippets Groups Projects
Verified Commit fe941ffb authored by Jess's avatar Jess
Browse files

Issue #3296108 by catch, dww, Spokje, mondrake: mysql_requirements() assumes...

Issue #3296108 by catch, dww, Spokje, mondrake: mysql_requirements() assumes it's used for the default connection
parent 70246d12
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,10 @@ function mysql_requirements($phase) {
// Test with MySql databases.
if (Database::isActiveConnection()) {
$connection = Database::getConnection();
// Only show requirements when MySQL is the default database connection.
if (!($connection->driver() === 'mysql' && $connection->getProvider() === 'mysql')) {
return [];
}
$query = 'SELECT @@SESSION.tx_isolation';
// The database variable "tx_isolation" has been removed in MySQL v8.0 and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment