mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Use correct cache
This commit is contained in:
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…
x
Reference in New Issue
Block a user