fix: handle filters with no criteria

This commit is contained in:
Greg Heartsfield 2021-12-12 14:52:55 -06:00
parent b3c7852b19
commit 850064b871

View File

@ -245,6 +245,9 @@ fn query_from_sub(sub: &Subscription) -> String {
fc.push_str(&filter_components.join(" AND "));
fc.push_str(" )");
filter_clauses.push(fc);
} else {
// if there are no filter clauses, we should return everything
filter_clauses.push(" 1=1 ".to_owned());
}
}