Don't order by rowid

pull/123/head
Erik Johnston 2015-03-24 16:19:01 +00:00
parent 9115421ace
commit 9e98f1022a
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ class SQLBaseStore(object):
def _simple_select_one_txn(self, txn, table, keyvalues, retcols, def _simple_select_one_txn(self, txn, table, keyvalues, retcols,
allow_none=False): 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), ", ".join(retcols),
table, table,
" AND ".join("%s = ?" % (k) for k in keyvalues) " AND ".join("%s = ?" % (k) for k in keyvalues)