0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-07-23 03:29:07 +02:00

Fix SQL syntax

This commit is contained in:
Erik Johnston 2015-11-12 15:09:45 +00:00
parent 14a9d805b9
commit 320408ef47

View file

@ -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 = ?"