We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 797d93b + 91a365d commit 9711a4dCopy full SHA for 9711a4d
pool/pgpoolstorage/policy.go
@@ -34,6 +34,8 @@ func (p *PostgresPoolStorage) CheckPolicy(ctx context.Context, policy pool.Polic
34
} else if err != nil {
35
return false, err
36
}
37
+
38
+ defer rows.Close()
39
if !rows.Next() { // should always be a row if the policy exists
40
return false, nil
41
0 commit comments