Close the stmt after usage
This commit is contained in:
parent
da51f32e03
commit
fa4f7021a1
|
@ -312,6 +312,7 @@ func (s *membershipStatements) SelectRoomsWithMembership(
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer internal.CloseAndLogIfError(ctx, stmt, "SelectRoomsWithMembership: stmt.close() failed")
|
||||
params := make([]any, len(userIDs)+1)
|
||||
params[0] = membershipState
|
||||
for i, userID := range userIDs {
|
||||
|
|
Loading…
Reference in a new issue