summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-30 15:23:55 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-30 15:23:55 +0100
commitd39c09c28408b28612484ba1984b74830d12319e (patch)
tree708c7afac2e86cc90ff6c3285b8ac5f65addf9d0
parentWhoops, took out a line there... (diff)
downloadsynapse-d39c09c28408b28612484ba1984b74830d12319e.tar.xz
Ambiguous `room_id`
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-rw-r--r--synapse/storage/stats.py2
1 files changed, 1 insertions, 1 deletions
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 <= ?
         """ % (