pull/922/head
Erik Johnston 2016-07-20 10:18:09 +01:00
parent a98d215204
commit f91faf09b3
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ def upper_bound(token, engine, inclusive=True):
def filter_to_clause(event_filter):
# NB: This may create SQL clauses that don't optimise well (and we don't
# have indices on all possible clauses). E.g. it may create
# "room_id == X AND room_id != X", which postgres doesn't optimise.
if not event_filter:
return "", []