Don't include trailing space to delimiter
This commit is contained in:
parent
1501d60f14
commit
7fcfb0d16a
|
@ -58,7 +58,7 @@ if (!$error && $_POST) {
|
|||
$dump_format = $adminer->dumpFormat();
|
||||
unset($dump_format["sql"]);
|
||||
while ($query != "") {
|
||||
if (!$offset && preg_match("~^$space*DELIMITER\\s+(.+)~i", $query, $match)) {
|
||||
if (!$offset && preg_match("~^$space*DELIMITER\\s+(\\S+)~i", $query, $match)) {
|
||||
$delimiter = $match[1];
|
||||
$query = substr($query, strlen($match[0]));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue