mirror of
https://github.com/vrana/adminer.git
synced 2025-08-20 13:21:30 +02:00
Remove table_comment function
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@995 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -170,6 +170,10 @@ function table_status($name = "") {
|
||||
$return = array();
|
||||
$result = $dbh->query("SHOW TABLE STATUS" . (strlen($name) ? " LIKE " . $dbh->quote(addcslashes($name, "%_")) : ""));
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
if ($row["Engine"] == "InnoDB") {
|
||||
// ignore internal comment, unnecessary since MySQL 5.1.21
|
||||
$row["Comment"] = preg_replace('~(?:(.+); )?InnoDB free: .*~', '\\1', $row["Comment"]);
|
||||
}
|
||||
$return[$row["Name"]] = $row;
|
||||
}
|
||||
$result->free();
|
||||
@@ -282,13 +286,6 @@ function escape_string($val) {
|
||||
return substr($dbh->quote($val), 1, -1);
|
||||
}
|
||||
|
||||
function table_comment(&$row) {
|
||||
if ($row["Engine"] == "InnoDB") {
|
||||
// ignore internal comment, unnecessary since MySQL 5.1.21
|
||||
$row["Comment"] = preg_replace('~(?:(.+); )?InnoDB free: .*~', '\\1', $row["Comment"]);
|
||||
}
|
||||
}
|
||||
|
||||
function information_schema($db) {
|
||||
global $dbh;
|
||||
return ($dbh->server_info >= 5 && $db == "information_schema");
|
||||
|
Reference in New Issue
Block a user