Comment about sqlite and WITH RECURSIVE

This commit is contained in:
Erik Johnston 2016-09-05 14:50:36 +01:00
parent 485d999c8a
commit 373654c635

View File

@ -209,6 +209,8 @@ class StateStore(SQLBaseStore):
else:
return 0
else:
# We don't use WITH RECURSIVE on sqlite3 as there are distributions
# that ship with an sqlite3 version that doesn't support it (e.g. wheezy)
next_group = state_group
count = 0
@ -340,6 +342,8 @@ class StateStore(SQLBaseStore):
key = (row["type"], row["state_key"])
results[group][key] = row["event_id"]
else:
# We don't use WITH RECURSIVE on sqlite3 as there are distributions
# that ship with an sqlite3 version that doesn't support it (e.g. wheezy)
for group in groups:
group_tree = [group]
next_group = group