From: jakubvrana Date: Sat, 14 Jul 2007 07:06:14 +0000 (+0000) Subject: Ignore InnoDB comment X-Git-Tag: v3.0.0~1343 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=ad7c79b100ff6ac0f55124c54b5f10dae09d07c7;p=adminer.git Ignore InnoDB comment git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@165 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/create.inc.php b/create.inc.php index 3015e873..5b9ec59d 100644 --- a/create.inc.php +++ b/create.inc.php @@ -74,6 +74,9 @@ if ($_POST) { } } elseif (strlen($_GET["create"])) { $row = table_status($_GET["create"]); + if ($row["Engine"] == "InnoDB") { + $row["Comment"] = preg_replace('~(?:(.+); )?InnoDB free: .*~', '\\1', $row["Comment"]); + } $row["name"] = $_GET["create"]; $row["fields"] = array_values(fields($_GET["create"])); } else {