From 7e5bf6e383f603b94f8975c37e545fb0f9f486fd Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 24 Oct 2010 00:03:13 +0200 Subject: [PATCH] Use DELIMITER only in MySQL --- adminer/sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {