0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-18 08:33:52 +01:00

SQL param ordering

This commit is contained in:
Erik Johnston 2017-01-27 10:31:29 +00:00
parent 755adff0e4
commit 738a2867c8

View file

@ -260,7 +260,7 @@ class DeviceStore(SQLBaseStore):
now_stream_id): now_stream_id):
sql = """ sql = """
SELECT user_id, device_id, max(stream_id) FROM device_lists_outbound_pokes 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 GROUP BY user_id, device_id
""" """
txn.execute( txn.execute(