Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
1886a079
Unverified
Commit
1886a079
authored
Mar 15, 2021
by
Francesc Guasch
Committed by
GitHub
Mar 15, 2021
Browse files
fix(install): remove SQL comments (#1514)
SQL comments crashed on dockerized mysql issue #1510
parent
153f4570
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
1886a079
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment