From 620cb07e19ce3260bfcd89eba2f4dc2f7396a22e Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 25 Jul 2007 08:01:41 +0000 Subject: [PATCH] Remove $childs git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@239 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- select.inc.php | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/select.inc.php b/select.inc.php index 46a2ef20..2cb3fba4 100644 --- a/select.inc.php +++ b/select.inc.php @@ -131,20 +131,6 @@ function add_row(field) { $foreign_keys[$val][] = $foreign_key; } } - $childs = array(); - /* slow-down - if ($mysql->server_info >= 5) { - // 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"); - while ($row1 = $result1->fetch_assoc()) { - $childs[$row1["CONSTRAINT_NAME"]]["db"] = $row1["TABLE_SCHEMA"]; - $childs[$row1["CONSTRAINT_NAME"]]["table"] = $row1["TABLE_NAME"]; - $childs[$row1["CONSTRAINT_NAME"]]["source"][] = $row1["REFERENCED_COLUMN_NAME"]; - $childs[$row1["CONSTRAINT_NAME"]]["target"][] = $row1["COLUMN_NAME"]; - } - $result1->free(); - } - */ echo "\n"; for ($j=0; $row = $result->fetch_assoc(); $j++) { @@ -177,15 +163,7 @@ function add_row(field) { } echo ""; } - echo ''; + echo ''; echo "\n"; } echo "
$val' . lang('edit') . ''; - foreach ($childs as $child) { - echo ' ' . htmlspecialchars($child["table"]) . ''; - } - echo '' . lang('edit') . '
\n";