1
0
mirror of https://github.com/golang/go synced 2024-11-26 13:28:27 -07:00
go/src/database/sql
Daniel Theophanes a335c344fa database/sql: ensure driverConns are closed if not returned to pool
Previously if a connection was requested but timed out during the
request and when acquiring the db.Lock the connection request
is fulfilled and the request is unable to be returned to the
connection pool, then then driver connection would not be closed.

No tests were added or modified because I was unable to determine
how to trigger this situation without something invasive.

Change-Id: I9d4dc680e3fdcf63d79d212174a5b8b313f363f1
Reviewed-on: https://go-review.googlesource.com/36641
Reviewed-by: Russ Cox <rsc@golang.org>
2017-02-10 13:28:32 +00:00
..
driver database/sql: do not store Tx options in Context 2016-12-14 18:13:13 +00:00
convert_test.go
convert.go database/sql: document expectations for named parameters 2016-12-01 16:52:12 +00:00
ctxutil.go database/sql: record the context error in Rows if canceled 2017-02-08 18:30:39 +00:00
doc.txt
example_test.go
fakedb_test.go database/sql: document expectations for named parameters 2016-12-01 16:52:12 +00:00
sql_test.go database/sql: replace the expr of timeunit * N with N * timeunit in test 2017-02-09 04:13:35 +00:00
sql.go database/sql: ensure driverConns are closed if not returned to pool 2017-02-10 13:28:32 +00:00