]> git.joonet.de Git - adminer.git/commitdiff
Use DELIMITER only in MySQL
authorJakub Vrana <jakub@vrana.cz>
Sat, 23 Oct 2010 22:03:13 +0000 (00:03 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sat, 23 Oct 2010 22:03:13 +0000 (00:03 +0200)
adminer/sql.inc.php

index 459ecb2873dbc406b1eed41a63b8887a72acc42e..5dbb44f4dacdd65bf67a5382fa8847e2c92672a8 100644 (file)
@@ -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 {