mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Fix strings.Replace
This commit is contained in:
parent
d9fd084fbc
commit
5d1062c2b8
|
|
@ -166,7 +166,7 @@ func (s *joinedHostsStatements) SelectJoinedHostsForRooms(
|
||||||
iRoomIDs[i] = roomIDs[i]
|
iRoomIDs[i] = roomIDs[i]
|
||||||
}
|
}
|
||||||
|
|
||||||
sql := strings.Replace(s.selectJoinedHostsForRoomsSQL, "($1)", sqlutil.QueryVariadic(len(iRoomIDs)))
|
sql := strings.Replace(s.selectJoinedHostsForRoomsSQL, "($1)", sqlutil.QueryVariadic(len(iRoomIDs)), 1)
|
||||||
rows, err := s.db.QueryContext(ctx, sql, iRoomIDs...)
|
rows, err := s.db.QueryContext(ctx, sql, iRoomIDs...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue