bug #1616486 server_databases does not show all databases
This commit is contained in:
@@ -456,13 +456,13 @@ function PMA_DBI_get_databases_full($database = null, $force_stats = false,
|
||||
if ($force_stats) {
|
||||
$sql .= '
|
||||
LEFT JOIN `information_schema`.`TABLES`
|
||||
ON `information_schema`.`TABLES`.`TABLE_SCHEMA`
|
||||
= `information_schema`.`SCHEMATA`.`SCHEMA_NAME`';
|
||||
ON BINARY `information_schema`.`TABLES`.`TABLE_SCHEMA`
|
||||
= BINARY `information_schema`.`SCHEMATA`.`SCHEMA_NAME`';
|
||||
}
|
||||
$sql .= '
|
||||
' . $sql_where_schema . '
|
||||
GROUP BY `information_schema`.`SCHEMATA`.`SCHEMA_NAME`
|
||||
ORDER BY ' . PMA_backquote($sort_by) . ' ' . $sort_order
|
||||
GROUP BY BINARY `information_schema`.`SCHEMATA`.`SCHEMA_NAME`
|
||||
ORDER BY BINARY ' . PMA_backquote($sort_by) . ' ' . $sort_order
|
||||
. $limit;
|
||||
$databases = PMA_DBI_fetch_result($sql, 'SCHEMA_NAME', null, $link);
|
||||
|
||||
|
Reference in New Issue
Block a user