2
0

removed unnecessary name argument from DeallocateAll

This commit is contained in:
Bodo Kaiser
2022-11-17 09:46:39 +01:00
committed by Jack Christensen
parent ba4bbf92af
commit 56633b3d51
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ func (c *Conn) Deallocate(ctx context.Context, name string) error {
}
// DeallocateAll releases all previously prepared statements from the server and client, where it also resets the statement and description cache.
func (c *Conn) DeallocateAll(ctx context.Context, name string) error {
func (c *Conn) DeallocateAll(ctx context.Context) error {
c.preparedStatements = map[string]*pgconn.StatementDescription{}
if c.config.StatementCacheCapacity > 0 {
c.statementCache = stmtcache.NewLRUCache(c.config.StatementCacheCapacity)