Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
e3752ee9
Commit
e3752ee9
authored
Mar 15, 2021
by
Francesc Guasch
Browse files
fix(install): remove SQL comments (#1514)
SQL comments crashed on dockerized mysql issue #1510
parent
bab2eec6
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
e3752ee9
...
...
@@ -1474,6 +1474,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
.
Attach a 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