Fix #11594 'only_db' config option bug when db names contain underscore and are grouped
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
4f8bb8fdda
commit
6c002b9fbc
@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog
|
||||
- issue #11592 Missing headers in zipped export
|
||||
- issue #11590 Parser: Array to string conversion
|
||||
- issue #11597 Huge binary log growth on 4.5.x
|
||||
- issue #11594 'only_db' config option bug when db names contain underscore and are grouped
|
||||
|
||||
4.5.1.0 (2015-10-23)
|
||||
- issue Invalid argument supplied for foreach()
|
||||
|
||||
@ -451,7 +451,8 @@ class Node
|
||||
$query .= "ORDER BY DB_first_level ASC ";
|
||||
$query .= "LIMIT $pos, $maxItems";
|
||||
$query .= ") t2 ";
|
||||
$query .= "WHERE 1 = LOCATE(CONCAT(DB_first_level, ";
|
||||
$query .= $this->_getWhereClause('SCHEMA_NAME', $searchClause);
|
||||
$query .= " AND 1 = LOCATE(CONCAT(DB_first_level, ";
|
||||
$query .= "'$dbSeparator'), ";
|
||||
$query .= "CONCAT(SCHEMA_NAME, ";
|
||||
$query .= "'$dbSeparator')) ";
|
||||
@ -482,7 +483,7 @@ class Node
|
||||
}
|
||||
|
||||
$query = "SHOW DATABASES ";
|
||||
$query .= $this->_getWhereClause('Database', '');
|
||||
$query .= $this->_getWhereClause('Database', $searchClause);
|
||||
$query .= " AND (";
|
||||
$subClauses = array();
|
||||
foreach ($prefixes as $prefix) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user