mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix SQL syntax
This commit is contained in:
parent
14a9d805b9
commit
320408ef47
@ -255,8 +255,9 @@ class SearchStore(BackgroundUpdateStore):
|
|||||||
sql = (
|
sql = (
|
||||||
"SELECT rank(matchinfo) as rank, room_id, event_id,"
|
"SELECT rank(matchinfo) as rank, room_id, event_id,"
|
||||||
" topological_ordering, stream_ordering"
|
" topological_ordering, stream_ordering"
|
||||||
" FROM (SELECT event_id, matchinfo(event_search) FROM event_search"
|
" FROM (SELECT key, event_id, matchinfo(event_search) as matchinfo"
|
||||||
" WHERE value MATCH"
|
" FROM event_search"
|
||||||
|
" WHERE value MATCH ?"
|
||||||
" )"
|
" )"
|
||||||
" CROSS JOIN events USING (event_id)"
|
" CROSS JOIN events USING (event_id)"
|
||||||
" WHERE room_id = ?"
|
" WHERE room_id = ?"
|
||||||
|
Loading…
Reference in New Issue
Block a user