From 2b0de9c17a5606cc49cde3118051ee67ee472c12 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 25 Aug 2015 11:30:55 -0700 Subject: [PATCH] Issue #2554241 by neclimdul: mysql's Schema implementation can only provide information about the default connection --- core/lib/Drupal/Core/Database/Driver/mysql/Schema.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php index 8c1f51d4784..28552fa55c5 100644 --- a/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php @@ -61,8 +61,7 @@ class Schema extends DatabaseSchema { $info['table'] = substr($table, ++$pos); } else { - $db_info = Database::getConnectionInfo(); - $info['database'] = $db_info[$this->connection->getTarget()]['database']; + $info['database'] = $this->connection->getConnectionOptions()['database']; $info['table'] = $table; } return $info;