removed unnecessary name argument from DeallocateAll
This commit is contained in:
committed by
Jack Christensen
parent
ba4bbf92af
commit
56633b3d51
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user