Unverified Commit 1886a079 authored by Francesc Guasch's avatar Francesc Guasch Committed by GitHub
Browse files

fix(install): remove SQL comments (#1514)

SQL comments crashed on dockerized mysql

issue #1510
parent 153f4570
......@@ -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);
......
Supports Markdown
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