diff options
author | Kegsay <kegan@matrix.org> | 2020-09-04 14:25:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 14:25:01 +0100 |
commit | ca8dcf46b746686e213b184c3ae42ba0be17b46b (patch) | |
tree | 25a1708a15e8ec0cf2ab6d0a574411ce8e31cc87 /roomserver/storage/postgres | |
parent | 81688d6bde5e544d11691e5b137eb444a35c9d32 (diff) |
Remove QuerySharedUsers from current state server (#1396)
* Remove QuerySharedUsers from current state server
* Bugfixes
Diffstat (limited to 'roomserver/storage/postgres')
-rw-r--r-- | roomserver/storage/postgres/rooms_table.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/storage/postgres/rooms_table.go b/roomserver/storage/postgres/rooms_table.go index ef1b7891..ce635210 100644 --- a/roomserver/storage/postgres/rooms_table.go +++ b/roomserver/storage/postgres/rooms_table.go @@ -79,10 +79,10 @@ const selectRoomIDsSQL = "" + "SELECT room_id FROM roomserver_rooms" const bulkSelectRoomIDsSQL = "" + - "SELECT room_id FROM roomserver_rooms WHERE room_nid IN ($1)" + "SELECT room_id FROM roomserver_rooms WHERE room_nid = ANY($1)" const bulkSelectRoomNIDsSQL = "" + - "SELECT room_nid FROM roomserver_rooms WHERE room_id IN ($1)" + "SELECT room_nid FROM roomserver_rooms WHERE room_id = ANY($1)" type roomStatements struct { insertRoomNIDStmt *sql.Stmt |