Use state_groups table to test existence

pull/1060/head
Erik Johnston 2016-08-31 16:25:57 +01:00
parent ed7a703d4c
commit 0cfd6c3161
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class StateStore(SQLBaseStore):
def _have_persisted_state_group_txn(self, txn, state_group):
txn.execute(
"SELECT count(*) FROM state_groups_state WHERE state_group = ?",
"SELECT count(*) FROM state_groups WHERE id = ?",
(state_group,)
)
row = txn.fetchone()