go/src/pkg/database/sql
Alberto García Hierro 478f4b6754 database/sql: fix double decrement of numOpen count; test for connection leaks
Add a check at the end of every test to make sure
there are no leaked connections after running a test.

Avoid incorrectly decrementing the number of open connections
when the driver connection ends up it a bad state (numOpen was
decremented twice).

Prevent leaking a Rows struct (which ends up leaking a
connection) in Row.Scan() when a *RawBytes destination is
improperly used.

Close the Rows struct in TestRowsColumns.

Update #6593

R=golang-dev, bradfitz, dave
CC=golang-dev
https://golang.org/cl/14642044
2013-10-16 09:17:25 -07:00
..
driver database/sql/driver: try to unstutter Value docs 2013-04-26 11:42:58 -07:00
convert.go database/sql: optimized []byte copy + []byte(nil) -> *interface fix 2013-03-25 17:43:30 -07:00
convert_test.go database/sql: optimized []byte copy + []byte(nil) -> *interface fix 2013-03-25 17:43:30 -07:00
doc.txt database/sql: fix doc references to old package name 2013-02-13 18:47:25 -08:00
example_test.go database/sql: document args, add a couple examples 2013-01-11 14:46:49 -08:00
fakedb_test.go database/sql: add SetMaxOpenConns 2013-08-30 09:27:33 -07:00
sql.go database/sql: fix double decrement of numOpen count; test for connection leaks 2013-10-16 09:17:25 -07:00
sql_test.go database/sql: fix double decrement of numOpen count; test for connection leaks 2013-10-16 09:17:25 -07:00