mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 09:34:10 +02:00
No default $type in routine()
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@191 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user