diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-24 16:19:01 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-24 16:19:01 +0000 |
commit | 9e98f1022a927adef959e0a76dde2fc6f708917d (patch) | |
tree | 606397af9301567204f7fa461a2c7807e55094f0 /synapse/storage/_base.py | |
parent | Use _simple_upsert (diff) | |
download | synapse-9e98f1022a927adef959e0a76dde2fc6f708917d.tar.xz |
Don't order by rowid
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 9214e0c494..1ea39bc0ad 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -585,7 +585,7 @@ class SQLBaseStore(object): def _simple_select_one_txn(self, txn, table, keyvalues, retcols, allow_none=False): - select_sql = "SELECT %s FROM %s WHERE %s ORDER BY rowid asc" % ( + select_sql = "SELECT %s FROM %s WHERE %s" % ( ", ".join(retcols), table, " AND ".join("%s = ?" % (k) for k in keyvalues) |