From: Jakub Vrana Date: Sat, 23 Oct 2010 22:03:13 +0000 (+0200) Subject: Use DELIMITER only in MySQL X-Git-Tag: v3.1.0~41 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=7e5bf6e383f603b94f8975c37e545fb0f9f486fd;p=adminer.git Use DELIMITER only in MySQL --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 459ecb28..5dbb44f4 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -42,7 +42,7 @@ if (!$error && $_POST) { $commands = 0; $errors = array(); while ($query != "") { - if (!$offset && preg_match('~^\\s*DELIMITER\\s+(.+)~i', $query, $match)) { + if (!$offset && $jush == "sql" && preg_match('~^\\s*DELIMITER\\s+(.+)~i', $query, $match)) { $delimiter = $match[1]; $query = substr($query, strlen($match[0])); } else {