From d39c09c28408b28612484ba1984b74830d12319e Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Fri, 30 Aug 2019 15:23:55 +0100 Subject: Ambiguous `room_id` Signed-off-by: Olivier Wilkinson (reivilibre) --- synapse/storage/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse/storage/stats.py') diff --git a/synapse/storage/stats.py b/synapse/storage/stats.py index 3bcfcaaeae..ac08836d93 100644 --- a/synapse/storage/stats.py +++ b/synapse/storage/stats.py @@ -1080,7 +1080,7 @@ class StatsStore(StateDeltasStore): SELECT COUNT(*) AS num_events, SUM(%s) AS num_bytes FROM events JOIN event_json USING (event_id) - WHERE room_id = ? + WHERE events.room_id = ? AND ? <= stream_ordering AND stream_ordering <= ? """ % ( -- cgit 1.5.1