Order 'get_recent_events_for_room' correctly.

This commit is contained in:
Erik Johnston 2014-08-26 09:22:58 +01:00
parent 95839212a7
commit be6abdff19
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class StreamStore(SQLBaseStore):
sql = (
"SELECT * FROM events "
"WHERE room_id = ? AND stream_ordering <= ? "
"ORDER BY topological_ordering, stream_ordering DESC LIMIT ? "
"ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ? "
)
rows = yield self._execute_and_decode(