aboutsummaryrefslogtreecommitdiff
path: root/roomserver/storage/postgres
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-09-04 14:25:01 +0100
committerGitHub <noreply@github.com>2020-09-04 14:25:01 +0100
commitca8dcf46b746686e213b184c3ae42ba0be17b46b (patch)
tree25a1708a15e8ec0cf2ab6d0a574411ce8e31cc87 /roomserver/storage/postgres
parent81688d6bde5e544d11691e5b137eb444a35c9d32 (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.go4
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