Delay handling invalidated statements when in transaction

This commit is contained in:
Jack Christensen 2022-07-09 10:20:54 -05:00
parent e7aa76ccf9
commit c31b89a3f2

View File

@ -1179,6 +1179,10 @@ order by attnum`,
}
func (c *Conn) deallocateInvalidatedCachedStatements(ctx context.Context) error {
if c.pgConn.TxStatus() != 'I' {
return nil
}
if c.descriptionCache != nil {
c.descriptionCache.HandleInvalidated()
}