Commit c6c36b0f authored by Jessica Severin's avatar Jessica Severin
Browse files

added quotes to data in SQL insert

parent f9399a0c
......@@ -299,9 +299,10 @@ 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();
......
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