summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-12-14 11:38:11 +0000
committerMark Haines <mark.haines@matrix.org>2015-12-14 11:38:11 +0000
commitbfc52a2342999a7887dcc5ba653b67454c0fc2c8 (patch)
tree6e2dd69376b93dd2bfe64451582644450b6f77e3
parentMerge branch 'release-v0.12.0' into develop (diff)
downloadsynapse-bfc52a2342999a7887dcc5ba653b67454c0fc2c8.tar.xz
Fix typo in sql for full text search on sqlite3
-rw-r--r--synapse/storage/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/search.py b/synapse/storage/search.py
index efd87d99bb..00f89ff02f 100644
--- a/synapse/storage/search.py
+++ b/synapse/storage/search.py
@@ -189,7 +189,7 @@ class SearchStore(BackgroundUpdateStore):
 
             count_sql = (
                 "SELECT room_id, count(*) as count FROM event_search"
-                " WHERE value MATCH ? AND "
+                " WHERE value MATCH ?"
             )
             count_args = [search_term] + count_args
         else: