1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 17:44:07 +02:00

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; $commands = 0;
$errors = array(); $errors = array();
while ($query != "") { 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]; $delimiter = $match[1];
$query = substr($query, strlen($match[0])); $query = substr($query, strlen($match[0]));
} else { } else {