This commit is contained in:
Laurent Destailleur 2022-01-14 11:37:13 +01:00
parent 91b2d59458
commit 02fc420c2a

View File

@ -240,6 +240,7 @@ function run_sql($sqlfile, $silent = 1, $entity = '', $usesavepoint = 1, $handle
if (empty($nocommentremoval)) {
$buf = preg_replace('/([,;ERLT\)])\s*--.*$/i', '\1', $buf); //remove comment from a line that not start with -- before add it to the buffer
}
if ($buffer) $buffer .= ' ';
$buffer .= trim($buf);
}