bug #1616486 server_databases does not show all databases

This commit is contained in:
Sebastian Mendel
2007-02-12 15:22:19 +00:00
parent be83bcc337
commit e2ad54a258
2 changed files with 8 additions and 4 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$
$HeadURL$
2007-02-12 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/database_interface.lib.php: bug #1616486 server_databases does
not show all databases
2007-02-11 Marc Delisle <lem9@users.sourceforge.net>
* main.php: some links should open a new page
* Documentation.html, libraries/navigation_header.inc.php,

View File

@@ -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);