mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 22:00:22 +00:00
Fix SQL statement
This commit is contained in:
parent
129e403487
commit
3b0fa77f50
1 changed files with 3 additions and 3 deletions
|
@ -164,10 +164,10 @@ class SearchStore(BackgroundUpdateStore):
|
||||||
|
|
||||||
def reindex_search_txn(txn):
|
def reindex_search_txn(txn):
|
||||||
sql = (
|
sql = (
|
||||||
"SELECT stream_ordering, origin_server_ts, event_id FROM events"
|
"SELECT e.stream_ordering, e.origin_server_ts, event_id FROM events as e"
|
||||||
" INNER JOIN event_search USING (room_id, event_id)"
|
" INNER JOIN event_search USING (room_id, event_id)"
|
||||||
" WHERE ? <= stream_ordering AND stream_ordering < ?"
|
" WHERE ? <= e.stream_ordering AND e.stream_ordering < ?"
|
||||||
" ORDER BY stream_ordering DESC"
|
" ORDER BY e.stream_ordering DESC"
|
||||||
" LIMIT ?"
|
" LIMIT ?"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue