Commit 77facda9 authored by Jan Vogel's avatar Jan Vogel
Browse files

Update procedures.sqlite

We're using SQLite version 3.6.20 - somehow SQLite throws on this left join: 

LEFT JOIN analysis_base a USING(analysis_id)

However, this explicit LEFT join works for us and our SQLite installation: 

LEFT JOIN analysis_base a ON a.analysis_id = r.analysis_id
parent b740cad2
......@@ -96,7 +96,7 @@ CREATE VIEW IF NOT EXISTS live_roles AS
FROM worker w
JOIN role r USING(worker_id)
LEFT JOIN resource_class rc ON w.resource_class_id=rc.resource_class_id
LEFT JOIN analysis_base a USING(analysis_id)
LEFT JOIN analysis_base a ON a.analysis_id = r.analysis_id
WHERE r.when_finished IS NULL
GROUP BY w.meadow_user, w.meadow_type, w.resource_class_id, rc.name, r.analysis_id, a.logic_name;
......
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