Commit c6ecd991 authored by Leo Gordon's avatar Leo Gordon
Browse files

bugfix: msg view should behave when analysis_id is still NULL

parent c686f8cf
......@@ -7,6 +7,6 @@ CREATE OR REPLACE VIEW msg AS
SELECT a.analysis_id, a.logic_name, m.*
FROM job_message m
JOIN worker w USING (worker_id)
JOIN analysis_base a USING (analysis_id)
LEFT JOIN job j USING (job_id);
LEFT JOIN analysis_base a ON (a.analysis_id=w.analysis_id)
LEFT JOIN job j ON (j.job_id=m.job_id);
......@@ -35,8 +35,8 @@ CREATE OR REPLACE VIEW msg AS
SELECT a.analysis_id, a.logic_name, m.*
FROM job_message m
JOIN worker w USING (worker_id)
JOIN analysis_base a USING (analysis_id)
LEFT JOIN job j USING (job_id);
LEFT JOIN analysis_base a ON (a.analysis_id=w.analysis_id)
LEFT JOIN job j ON (j.job_id=m.job_id);
#### time an analysis or group of analyses (given by a name pattern) ######################################
......
......@@ -35,6 +35,6 @@ CREATE VIEW IF NOT EXISTS msg AS
SELECT a.analysis_id, a.logic_name, m.*
FROM job_message m
JOIN worker w USING (worker_id)
JOIN analysis_base a USING (analysis_id)
LEFT JOIN job j ON (m.job_id=j.job_id);
LEFT JOIN analysis_base a ON (a.analysis_id=w.analysis_id)
LEFT JOIN job j ON (j.job_id=m.job_id);
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