Skip to content
Snippets Groups Projects
Commit 2b0de9c1 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2554241 by neclimdul: mysql's Schema implementation can only provide...

Issue #2554241 by neclimdul: mysql's Schema implementation can only provide information about the default connection
parent b06eee20
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -61,8 +61,7 @@ protected function getPrefixInfo($table = 'default', $add_prefix = TRUE) {
$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;
......
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