Remove InnoDB table comment in Tables and views

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@516 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2008-10-03 12:40:20 +00:00
parent af4fbca33a
commit 3920ebbe37
3 changed files with 8 additions and 3 deletions

View File

@@ -334,3 +334,9 @@ function shorten_utf8($string, $length) {
}
return nl2br(htmlspecialchars($string));
}
function table_comment(&$row) {
if ($row["Engine"] == "InnoDB") {
$row["Comment"] = preg_replace('~(?:(.+); )?InnoDB free: .*~', '\\1', $row["Comment"]);
}
}