Skip to content
Snippets Groups Projects
Commit 320408ef authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix SQL syntax

parent 14a9d805
No related branches found
No related tags found
No related merge requests found
......@@ -255,8 +255,9 @@ class SearchStore(BackgroundUpdateStore):
sql = (
"SELECT rank(matchinfo) as rank, room_id, event_id,"
" topological_ordering, stream_ordering"
" FROM (SELECT event_id, matchinfo(event_search) FROM event_search"
" WHERE value MATCH"
" FROM (SELECT key, event_id, matchinfo(event_search) as matchinfo"
" FROM event_search"
" WHERE value MATCH ?"
" )"
" CROSS JOIN events USING (event_id)"
" WHERE room_id = ?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment