diff options
author | Erik Johnston <erik@matrix.org> | 2016-03-11 15:09:17 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-03-11 15:09:17 +0000 |
commit | c08122843982307dad8d099784bc1a4bc0202eae (patch) | |
tree | cd7a314ad38d0512fc18b45b5abc4ea35fc5df75 /synapse/storage/registration.py | |
parent | Merge pull request #641 from matrix-org/dbkr/fix_change_password (diff) | |
download | synapse-c08122843982307dad8d099784bc1a4bc0202eae.tar.xz |
Fix SQL statement
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/registration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py index 5d45f0c651..5e7a4e371d 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py @@ -199,7 +199,7 @@ class RegistrationStore(SQLBaseStore): def f(txn): txn.execute( "SELECT id, token FROM access_tokens " - "WHERE user_id = ? AND id not in LIMIT 50", + "WHERE user_id = ? AND id NOT IN ? LIMIT 50", (user_id, except_token_ids) ) rows = txn.fetchall() |