mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 10:50:21 +00:00
SQL param ordering
This commit is contained in:
parent
755adff0e4
commit
738a2867c8
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ class DeviceStore(SQLBaseStore):
|
|||
now_stream_id):
|
||||
sql = """
|
||||
SELECT user_id, device_id, max(stream_id) FROM device_lists_outbound_pokes
|
||||
WHERE destination = ? AND stream_id > ? AND stream_id <= ? AND sent = ?
|
||||
WHERE destination = ? AND ? < stream_id AND stream_id <= ? AND sent = ?
|
||||
GROUP BY user_id, device_id
|
||||
"""
|
||||
txn.execute(
|
||||
|
|
Loading…
Reference in a new issue