From 51e0b6418a2c375d168d565f96510567c58a28c6 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 16 Jul 2007 13:56:52 +0000 Subject: [PATCH] $inout in routine() is global git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@193 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index 4f2b7b80..5c35da89 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -121,7 +121,7 @@ function normalize_enum($match) { } function routine($name, $type) { - global $mysql, $enum_length; + global $mysql, $enum_length, $inout; $pattern = "\\s*(" . implode("|", $inout) . ")?\\s*(?:`((?:[^`]+|``)*)`\\s*|\\b(\\S+)\\s+)([a-z]+)(?:\\s*\\(((?:[^'\")]*|$enum_length)+)\\))?\\s*(zerofill\\s+)?(unsigned(?:\\s+zerofill)?)?"; $create = $mysql->result($mysql->query("SHOW CREATE $type " . idf_escape($name)), 2); preg_match("~\\($pattern(?:\\s*,$pattern)*~is", $create, $match);