From 9363b9211fd54299e6dd7fe614c19d2631598e8a Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Mon, 16 Jul 2007 13:53:09 +0000 Subject: [PATCH] No default $type in routine() git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@191 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 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); -- 2.39.5