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:
parent
7290be3de2
commit
2ea46aa113
@ -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]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user