summary refs log tree commit diff
path: root/synapse/storage/search.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2015-11-08 16:04:37 +0000
committerMatthew Hodgson <matthew@matrix.org>2015-11-08 16:04:37 +0000
commitdd40fb68e455b9a736f1871a19119eb0391cd0d5 (patch)
tree7eb076ef77c6fae11f549ac7a6f18971f27d9dac /synapse/storage/search.py
parentadd a key existence check to tags_by_room to avoid /events 500'ing when testi... (diff)
downloadsynapse-dd40fb68e455b9a736f1871a19119eb0391cd0d5.tar.xz
fix comedy important missing comma breaking recent-ordered FTS on sqlite
Diffstat (limited to 'synapse/storage/search.py')
-rw-r--r--synapse/storage/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/search.py b/synapse/storage/search.py
index 3cea2011fa..91a96d2a83 100644
--- a/synapse/storage/search.py
+++ b/synapse/storage/search.py
@@ -154,7 +154,7 @@ class SearchStore(SQLBaseStore):
             )
         elif isinstance(self.database_engine, Sqlite3Engine):
             sql = (
-                "SELECT rank(matchinfo(event_search)) as rank, room_id, event_id"
+                "SELECT rank(matchinfo(event_search)) as rank, room_id, event_id,"
                 " topological_ordering, stream_ordering"
                 " FROM event_search"
                 " NATURAL JOIN events"