mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 02:23:59 +02:00
$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:
@@ -121,7 +121,7 @@ function normalize_enum($match) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function routine($name, $type) {
|
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)?)?";
|
$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);
|
$create = $mysql->result($mysql->query("SHOW CREATE $type " . idf_escape($name)), 2);
|
||||||
preg_match("~\\($pattern(?:\\s*,$pattern)*~is", $create, $match);
|
preg_match("~\\($pattern(?:\\s*,$pattern)*~is", $create, $match);
|
||||||
|
Reference in New Issue
Block a user