Don't fill $childs until MySQL bug #29867 is resolved
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@224 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
36d6be998f
commit
3b9c93fb27
|
@ -119,7 +119,7 @@ for (var i=0; <?php echo $i; ?> > i; i++) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$childs = array();
|
$childs = array();
|
||||||
//! possible slow-down, get only for InnoDB
|
/* slow-down
|
||||||
if ($mysql->server_info >= 5) {
|
if ($mysql->server_info >= 5) {
|
||||||
// would be possible in earlier versions too, but only by examining all tables (in all databases)
|
// would be possible in earlier versions too, but only by examining all tables (in all databases)
|
||||||
$result1 = $mysql->query("SELECT * FROM information_schema.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_SCHEMA = '" . $mysql->escape_string($_GET["db"]) . "' AND REFERENCED_TABLE_NAME = '" . $mysql->escape_string($_GET["select"]) . "' ORDER BY ORDINAL_POSITION");
|
$result1 = $mysql->query("SELECT * FROM information_schema.KEY_COLUMN_USAGE WHERE REFERENCED_TABLE_SCHEMA = '" . $mysql->escape_string($_GET["db"]) . "' AND REFERENCED_TABLE_NAME = '" . $mysql->escape_string($_GET["select"]) . "' ORDER BY ORDINAL_POSITION");
|
||||||
|
@ -131,6 +131,7 @@ for (var i=0; <?php echo $i; ?> > i; i++) {
|
||||||
}
|
}
|
||||||
$result1->free();
|
$result1->free();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
|
echo "<table border='1' cellspacing='0' cellpadding='2'>\n";
|
||||||
for ($j=0; $row = $result->fetch_assoc(); $j++) {
|
for ($j=0; $row = $result->fetch_assoc(); $j++) {
|
||||||
|
|
Loading…
Reference in a new issue