Merge branch 'QA_4_7'
This commit is contained in:
commit
018fa75156
@ -319,13 +319,17 @@ class DatabaseInterface
|
||||
*/
|
||||
public function getTables($database, $link = null)
|
||||
{
|
||||
return $this->fetchResult(
|
||||
$tables = $this->fetchResult(
|
||||
'SHOW TABLES FROM ' . Util::backquote($database) . ';',
|
||||
null,
|
||||
0,
|
||||
$link,
|
||||
self::QUERY_STORE
|
||||
);
|
||||
if ($GLOBALS['cfg']['NaturalOrder']) {
|
||||
uksort($tables, 'strnatcasecmp');
|
||||
}
|
||||
return $tables;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -65,9 +65,9 @@ if ($foreign_db) {
|
||||
$tables[] = $row[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($GLOBALS['cfg']['NaturalOrder']) {
|
||||
uksort($tables, 'strnatcasecmp');
|
||||
if ($GLOBALS['cfg']['NaturalOrder']) {
|
||||
uksort($tables, 'strnatcasecmp');
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
|
||||
@ -23,14 +23,7 @@ if ($foreign_db) {
|
||||
if (isset($existrel[$myfield])) {
|
||||
$foreign_table = $existrel[$myfield]['foreign_table'];
|
||||
}
|
||||
$tables_rs = $GLOBALS['dbi']->query(
|
||||
'SHOW TABLES FROM ' . PMA\libraries\Util::backquote($foreign_db),
|
||||
null,
|
||||
PMA\libraries\DatabaseInterface::QUERY_STORE
|
||||
);
|
||||
while ($row = $GLOBALS['dbi']->fetchRow($tables_rs)) {
|
||||
$tables[] = $row[0];
|
||||
}
|
||||
$tables = $GLOBALS['dbi']->getTables();
|
||||
}
|
||||
|
||||
// column dropdown
|
||||
@ -76,4 +69,4 @@ if ($foreign_db && $foreign_table) {
|
||||
)
|
||||
); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user