Descriptiondatabase/sql: Fix connection leaks and numOpen count
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 used.
Close the Rows struct in TestRowsColumns.
Patch Set 1 #Patch Set 2 : diff -r a10c7a350ab5 https://code.google.com/p/go #Patch Set 3 : diff -r a10c7a350ab5 https://code.google.com/p/go #Patch Set 4 : diff -r 9d0d95344a6c https://code.google.com/p/go #
Total comments: 2
Patch Set 5 : diff -r 9d0d95344a6c https://code.google.com/p/go #MessagesTotal messages: 8
|