From 786de2bda864972f9b87d0e34ea0f47c3778dbd2 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Mon, 11 Jul 2022 20:42:55 -0500 Subject: [PATCH] Use correct cache --- conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conn.go b/conn.go index 3f6bee0d..f89dce7b 100644 --- a/conn.go +++ b/conn.go @@ -1040,7 +1040,7 @@ func (c *Conn) sendBatchExtendedWithDescription(ctx context.Context, b *Batch, d // Put all statements into the cache. It's fine if it overflows because HandleInvalidated will clean them up later. if sdCache != nil { for _, sd := range distinctNewQueries { - c.statementCache.Put(sd) + sdCache.Put(sd) } }