mirror of https://github.com/jackc/pgx.git
Use correct cache
parent
224393188d
commit
786de2bda8
2
conn.go
2
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.
|
// Put all statements into the cache. It's fine if it overflows because HandleInvalidated will clean them up later.
|
||||||
if sdCache != nil {
|
if sdCache != nil {
|
||||||
for _, sd := range distinctNewQueries {
|
for _, sd := range distinctNewQueries {
|
||||||
c.statementCache.Put(sd)
|
sdCache.Put(sd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue