Use DELIMITER only in MySQL

This commit is contained in:
Jakub Vrana 2010-10-24 00:03:13 +02:00
parent fe0690851f
commit 7e5bf6e383

View 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 {