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

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