Commit 12c1fc3f authored by Francesc Guasch's avatar Francesc Guasch
Browse files

fix(install): remove SQL comments

SQL comments crashed on dockerized mysql

issue #1510
parent 6b073c1f
......@@ -1313,6 +1313,7 @@ sub _insert_data {
open my $in,'<',$file_sql or die "$! $file_sql";
my $sql = '';
while (my $line = <$in>) {
$line =~ s{/\*.*?\*/}{};
$sql .= $line;
next if $sql !~ /\w/ || $sql !~ /;\s*$/;
$CONNECTOR->dbh->do($sql);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment