Commit 7f2f9803 authored by j.hoerdt's avatar j.hoerdt
Browse files

query sometimes yielded duplicates

parent 73ad5968
......@@ -135,7 +135,7 @@ class Sensor {
"set" +
" s.first_msg = case when date_ > s.first_msg then s.first_msg else date_ end," +
" s.last_msg = case when date_ < s.last_msg then s.last_msg else date_ end " +
"return s.pid, id(s), s.first_msg, s.last_msg, type.sensor_type"
"return distinct s.pid, id(s), s.first_msg, s.last_msg, type.sensor_type"
).withParameters(properties);
}
......
Supports Markdown
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