go/src/database/sql
Daniel Theophanes dec95d8fad database/sql: correctly guard the query Row preventing early release
When a Tx starts a query, prevent returning the connection to the pool
until after the query finishes.

Fixes #19058

Change-Id: I2c0480d9cca9eeb173b5b3441a5aeed6f527e0ac
Reviewed-on: https://go-review.googlesource.com/40400
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-04-12 17:36:26 +00:00
..
driver database/sql: do not store Tx options in Context 2016-12-14 18:13:13 +00:00
convert.go database/sql: support scanning into user defined string types 2017-03-31 05:02:02 +00:00
convert_test.go database/sql: support scanning into user defined string types 2017-03-31 05:02:02 +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 all: minor vet fixes 2016-10-24 17:27:37 +00:00
fakedb_test.go database/sql: document expectations for named parameters 2016-12-01 16:52:12 +00:00
sql.go database/sql: correctly guard the query Row preventing early release 2017-04-12 17:36:26 +00:00
sql_test.go database/sql: correctly guard the query Row preventing early release 2017-04-12 17:36:26 +00:00