Ref #16906 - Return an error message if the pma storage db could not be selected

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-08-27 22:32:56 +02:00
parent 7290be3de2
commit 2ea46aa113
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -2088,7 +2088,10 @@ class Relation
if ($create) {
if ($createQueries == null) { // first create
$createQueries = $this->getDefaultPmaTableNames();
$this->dbi->selectDb($db);
if (! $this->dbi->selectDb($db)) {
$GLOBALS['message'] = $this->dbi->getError();
return;
}
}
$this->dbi->tryQuery($createQueries[$table]);