mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-17 22:53:51 +01:00
Merge pull request #3241 from matrix-org/fix_user_visits_insertion
fix psql compatability bug
This commit is contained in:
commit
08462620bf
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||||
FROM user_ips AS u
|
FROM user_ips AS u
|
||||||
LEFT JOIN (
|
LEFT JOIN (
|
||||||
SELECT user_id, device_id, timestamp FROM user_daily_visits
|
SELECT user_id, device_id, timestamp FROM user_daily_visits
|
||||||
WHERE timestamp IS ?
|
WHERE timestamp = ?
|
||||||
) udv
|
) udv
|
||||||
ON u.user_id = udv.user_id AND u.device_id=udv.device_id
|
ON u.user_id = udv.user_id AND u.device_id=udv.device_id
|
||||||
WHERE last_seen > ? AND last_seen <= ? AND udv.timestamp IS NULL
|
WHERE last_seen > ? AND last_seen <= ? AND udv.timestamp IS NULL
|
||||||
|
|
Loading…
Reference in a new issue