From 8598a9757a3f535bcaa925c7fdce2e2e56f607dc Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Fri, 8 May 2009 05:57:01 +0000 Subject: [PATCH] Prepare for version 2 git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@604 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- editing.inc.php | 2 +- functions.inc.php | 8 -------- mysql.inc.php | 8 ++++++++ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/editing.inc.php b/editing.inc.php index e246faa6..cf8d2316 100644 --- a/editing.inc.php +++ b/editing.inc.php @@ -91,7 +91,7 @@ function edit_type($key, $field, $collations) { ?> " size="3" /> - +' . optionlist($collations, $field["collation"]) . '' . ($unsigned ? " ' : ''); ?> query("SHOW TABLE STATUS LIKE '" . $dbh->escape_string(addcslashes($table, "%_")) . "'"); - $return = $result->fetch_assoc(); - $result->free(); - return $return; -} - function unique_idf($row, $indexes) { foreach ($indexes as $index) { if ($index["type"] == "PRIMARY" || $index["type"] == "UNIQUE") { diff --git a/mysql.inc.php b/mysql.inc.php index b8bee319..4a22c154 100644 --- a/mysql.inc.php +++ b/mysql.inc.php @@ -284,6 +284,14 @@ function get_databases() { return $return; } +function table_status($table) { + global $dbh; + $result = $dbh->query("SHOW TABLE STATUS LIKE '" . $dbh->escape_string(addcslashes($table, "%_")) . "'"); + $return = $result->fetch_assoc(); + $result->free(); + return $return; +} + function fields($table) { global $dbh; $return = array();