From: jakubvrana Date: Mon, 16 Jul 2007 13:53:09 +0000 (+0000) Subject: No default $type in routine() X-Git-Tag: v3.0.0~1317 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=9363b9211fd54299e6dd7fe614c19d2631598e8a;p=adminer.git No default $type in routine() git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@191 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/functions.inc.php b/functions.inc.php index 3775988a..53615700 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -120,7 +120,7 @@ function normalize_enum($match) { return "'" . str_replace("'", "''", addcslashes(stripcslashes(str_replace($match[0]{0} . $match[0]{0}, $match[0]{0}, substr($match[0], 1, -1))), '\\')) . "'"; } -function routine($name, $type = "PROCEDURE") { +function routine($name, $type) { global $mysql, $enum_length; $pattern = "\\s*(IN|OUT|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);