Skip to content

Commit

Permalink
Merge branch 'QA_4_4'
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuracj committed Mar 26, 2015
2 parents c720215 + 112d4a9 commit a0aaf65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -19,6 +19,7 @@ phpMyAdmin - ChangeLog
- bug #4813 MySQL 5.7.6 and the Users menu tab
- bug #4818 MySQL 5.7.6 and changing the password for another user
- bug #4819 Request URI too large
- bug #4814 MySQL 5.7.6 and Databases
- bug Use 'server' parameter in console to work in multi server environments

4.4.0.0 (not yet released)
Expand Down
12 changes: 8 additions & 4 deletions libraries/DatabaseInterface.class.php
Expand Up @@ -958,12 +958,15 @@ public function getDatabasesFull($database = null, $force_stats = false,
$stats_join";
}
$sql .= $sql_where_schema . '
GROUP BY s.SCHEMA_NAME
GROUP BY s.SCHEMA_NAME, s.DEFAULT_COLLATION_NAME
ORDER BY ' . PMA_Util::backquote($sort_by) . ' ' . $sort_order
. $limit;
} else {
$sql = 'SELECT
s.SCHEMA_NAME,
$sql = 'SELECT *,
CAST(BIN_NAME AS CHAR CHARACTER SET utf8) AS SCHEMA_NAME
FROM (';
$sql .= 'SELECT
BINARY s.SCHEMA_NAME AS BIN_NAME,
s.DEFAULT_COLLATION_NAME';
if ($force_stats) {
$sql .= ',
Expand All @@ -984,7 +987,7 @@ public function getDatabasesFull($database = null, $force_stats = false,
ON BINARY t.TABLE_SCHEMA = BINARY s.SCHEMA_NAME';
}
$sql .= $sql_where_schema . '
GROUP BY BINARY s.SCHEMA_NAME
GROUP BY BINARY s.SCHEMA_NAME, s.DEFAULT_COLLATION_NAME
ORDER BY ';
if ($sort_by == 'SCHEMA_NAME'
|| $sort_by == 'DEFAULT_COLLATION_NAME'
Expand All @@ -994,6 +997,7 @@ public function getDatabasesFull($database = null, $force_stats = false,
$sql .= PMA_Util::backquote($sort_by)
. ' ' . $sort_order
. $limit;
$sql .= ') a';
}

$databases = $this->fetchResult($sql, 'SCHEMA_NAME', null, $link);
Expand Down

0 comments on commit a0aaf65

Please sign in to comment.