Commit 7a783e7e authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix [to bee183d1] : make sure our deletion matches the primary key constraint

parents fa0fd628 f98ede6a
......@@ -314,7 +314,7 @@ sub store_out_files {
# FIXME: An UPSERT would be better here, but it is only promised in PostgreSQL starting from 9.5, which is not officially out yet.
my $delete_sql = 'DELETE from job_file WHERE role_id=' . $job->role_id . ' AND job_id=' . $job->dbID . ' AND retry='.$job->retry_count;
my $delete_sql = 'DELETE from job_file WHERE job_id=' . $job->dbID . ' AND retry='.$job->retry_count;
$self->dbc->do( $delete_sql );
if($job->stdout_file or $job->stderr_file) {
......
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