This commit is contained in:
Neil Johnson 2018-03-29 17:27:39 +01:00
parent 9ee44a372d
commit b4e37c6f50
1 changed files with 4 additions and 2 deletions

View File

@ -280,7 +280,8 @@ class DataStore(RoomMemberStore, RoomStore,
sql = """
SELECT platform, COALESCE(count(*), 0) FROM (
SELECT users.name, platform, users.creation_ts * 1000, MAX(uip.last_seen)
SELECT users.name, platform, users.creation_ts * 1000,
MAX(uip.last_seen)
FROM users
INNER JOIN (
SELECT
@ -317,7 +318,8 @@ class DataStore(RoomMemberStore, RoomStore,
sql = """
SELECT COALESCE(count(*), 0) FROM (
SELECT users.name, users.creation_ts * 1000, MAX(uip.last_seen)
SELECT users.name, users.creation_ts * 1000,
MAX(uip.last_seen)
FROM users
INNER JOIN (
SELECT