This commit is contained in:
Erik Johnston 2014-08-15 16:11:25 +01:00
parent 19946509a4
commit 8fa3cc37f9
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ class StreamStore(SQLBaseStore):
"invites": invites_sql,
}
# Constraints and ordering depend on direction.
if from_key < to_key:
sql += (
"AND e.ordering > ? AND e.ordering < ? "