summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-22 18:06:24 +0000
committerRichard van der Hoff <richard@matrix.org>2017-11-22 18:06:24 +0000
commit6b48b3e277b2fe7c14493ddd6c07f43890584955 (patch)
tree2ca1a296e1d209b65a3dceacc0e2704f7d0950b1 /synapse
parentCheck database in has_completed_background_updates (diff)
downloadsynapse-6b48b3e277b2fe7c14493ddd6c07f43890584955.tar.xz
fix sql fails
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 476c84c621..470f7881ab 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -608,7 +608,7 @@ class SQLBaseStore(object):
         }
 
         if keyvalues:
-            sql += "WHERE %s" % " AND ".join("%s = ?" % k for k in keyvalues.iterkeys())
+            sql += " WHERE %s" % " AND ".join("%s = ?" % k for k in keyvalues.iterkeys())
             txn.execute(sql, keyvalues.values())
         else:
             txn.execute(sql)