mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +01:00
Explicit join
This commit is contained in:
parent
0acdd0f1ea
commit
1e4217c90c
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ class ReceiptsStore(SQLBaseStore):
|
||||||
sql = (
|
sql = (
|
||||||
"SELECT rl.room_id, rl.event_id,"
|
"SELECT rl.room_id, rl.event_id,"
|
||||||
" e.topological_ordering, e.stream_ordering"
|
" e.topological_ordering, e.stream_ordering"
|
||||||
" FROM receipts_linearized rl,"
|
" FROM receipts_linearized AS rl"
|
||||||
" events e"
|
" INNER JOIN events AS e USING (room_id, event_id)"
|
||||||
" WHERE rl.room_id = e.room_id"
|
" WHERE rl.room_id = e.room_id"
|
||||||
" AND rl.event_id = e.event_id"
|
" AND rl.event_id = e.event_id"
|
||||||
" AND user_id = ?"
|
" AND user_id = ?"
|
||||||
|
|
Loading…
Reference in a new issue