Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
c6c36b0f
Commit
c6c36b0f
authored
Jun 02, 2004
by
Jessica Severin
Browse files
added quotes to data in SQL insert
parent
f9399a0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
+4
-3
No files found.
modules/Bio/EnsEMBL/Hive/DBSQL/AnalysisJobAdaptor.pm
View file @
c6c36b0f
...
...
@@ -299,10 +299,11 @@ sub store_out_files {
return
unless
(
$job
and
(
$job
->
stdout_file
or
$job
->
stderr_file
));
my
$sql
=
"
INSERT ignore INTO analysis_job_file (analysis_job_id, type, path) VALUES
";
$sql
.=
"
(
"
.
$job
->
dbID
.
"
, STDOUT,
"
.
$job
->
stdout_file
.
"
)
"
if
(
$job
->
stdout_file
);
$sql
.=
"
(
"
.
$job
->
dbID
.
"
,
'
STDOUT
'
,
'
"
.
$job
->
stdout_file
.
"
'
)
"
if
(
$job
->
stdout_file
);
$sql
.=
"
,
"
if
(
$job
->
stdout_file
and
$job
->
stderr_file
);
$sql
.=
"
(
"
.
$job
->
dbID
.
"
, STDERR,
"
.
$job
->
stderr_file
.
"
)
"
if
(
$job
->
stderr_file
);
$sql
.=
"
(
"
.
$job
->
dbID
.
"
, 'STDERR', '
"
.
$job
->
stderr_file
.
"
')
"
if
(
$job
->
stderr_file
);
print
("
$sql
\n
");
my
$sth
=
$self
->
prepare
(
$sql
);
$sth
->
execute
();
$sth
->
finish
;
...
...
Write
Preview
Markdown
is supported
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