$inout in routine() is global

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@193 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2007-07-16 13:56:52 +00:00
parent 420ac01e3f
commit 51e0b6418a

View file

@ -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);