Commit 2b0de9c1 authored by webchick's avatar webchick

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
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment