From ab11c0a293e3f0911dd9bdbe0c4d3d1a07fd7f3f Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Fri, 30 Aug 2019 15:39:57 +0100 Subject: Whoopsies; these things come in order… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Olivier Wilkinson (reivilibre) --- synapse/storage/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py index 1cb534f8a4..ba7c3d25e8 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py @@ -1064,9 +1064,9 @@ class StatsStore(StateDeltasStore): WHERE ? %s stream_ordering AND stream_ordering %s ? GROUP BY room_id """ % ( + new_bytes_expression, low_comparator, high_comparator, - new_bytes_expression, ) txn.execute(sql, (low_pos, high_pos)) -- cgit 1.5.1