<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go/src/pkg/database/sql/sql_test.go, branch go1.3beta2</title>
<subtitle>Fork of Go programming language with my patches.</subtitle>
<id>http://git.kilabit.info/go/atom?h=go1.3beta2</id>
<link rel='self' href='http://git.kilabit.info/go/atom?h=go1.3beta2'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/'/>
<updated>2014-04-29T16:44:40Z</updated>
<entry>
<title>all: spelling tweaks, A-G</title>
<updated>2014-04-29T16:44:40Z</updated>
<author>
<name>Robert Hencke</name>
<email>robert.hencke@gmail.com</email>
</author>
<published>2014-04-29T16:44:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=f999e14f025b69516dd3e126d04dd309adb2fce0'/>
<id>urn:sha1:f999e14f025b69516dd3e126d04dd309adb2fce0</id>
<content type='text'>
LGTM=ruiu, bradfitz
R=golang-codereviews, bradfitz, ruiu
CC=golang-codereviews
https://golang.org/cl/91840044
</content>
</entry>
<entry>
<title>database/sql: Use all connections in pool</title>
<updated>2013-12-26T19:27:18Z</updated>
<author>
<name>Marko Tiikkaja</name>
<email>marko@joh.to</email>
</author>
<published>2013-12-26T19:27:18Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=0d12e24ebb037202c3324c230e075f1e448f6f34'/>
<id>urn:sha1:0d12e24ebb037202c3324c230e075f1e448f6f34</id>
<content type='text'>
The last connection in the pool was not being handed out correctly.

R=golang-codereviews, gobot, bradfitz
CC=golang-codereviews
https://golang.org/cl/40410043
</content>
</entry>
<entry>
<title>database/sql: fix auto-reconnect in prepared statements</title>
<updated>2013-12-17T19:57:30Z</updated>
<author>
<name>Julien Schmidt</name>
<email>google@julienschmidt.com</email>
</author>
<published>2013-12-17T19:57:30Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=762a9d934eab267418595df7a220eec50919b77d'/>
<id>urn:sha1:762a9d934eab267418595df7a220eec50919b77d</id>
<content type='text'>
This also fixes several connection leaks.
Fixes #5718

R=bradfitz, adg
CC=alberto.garcia.hierro, golang-dev
https://golang.org/cl/14920046
</content>
</entry>
<entry>
<title>database/sql: Check errors in QueryRow.Scan</title>
<updated>2013-12-16T20:48:35Z</updated>
<author>
<name>Marko Tiikkaja</name>
<email>marko@joh.to</email>
</author>
<published>2013-12-16T20:48:35Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=1f20ab1116ab6cb0b77e22ffba3de9919e9def50'/>
<id>urn:sha1:1f20ab1116ab6cb0b77e22ffba3de9919e9def50</id>
<content type='text'>
The previous coding did not correctly check for errors from the driver's
Next() or Close(), which could mask genuine errors from the database, as
witnessed in issue #6651.

Even after this change errors from Close() will be ignored if the query
returned no rows (as Rows.Next will have closed the handle already), but it
is a lot easier for the drivers to guard against that.

Fixes #6651.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/41590043
</content>
</entry>
<entry>
<title>database/sql: Fix connection leak and potential deadlock</title>
<updated>2013-10-16T16:22:57Z</updated>
<author>
<name>Alberto García Hierro</name>
<email>alberto@garciahierro.com</email>
</author>
<published>2013-10-16T16:22:57Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=37db8804691f0a5e618cbc041909895c9709263c'/>
<id>urn:sha1:37db8804691f0a5e618cbc041909895c9709263c</id>
<content type='text'>
CL 10726044 introduced a race condition which causes connections
to be leaked under certain circumstances. If SetMaxOpenConns is
used, the application eventually deadlocks. Otherwise, the number
of open connections just keep growing indefinitely.

Fixes #6593

R=golang-dev, bradfitz, tad.glines, bketelsen
CC=golang-dev
https://golang.org/cl/14611045
</content>
</entry>
<entry>
<title>database/sql: fix double decrement of numOpen count; test for connection leaks</title>
<updated>2013-10-16T16:17:25Z</updated>
<author>
<name>Alberto García Hierro</name>
<email>alberto@garciahierro.com</email>
</author>
<published>2013-10-16T16:17:25Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=478f4b67543824c039d2f7afec6af88a59148db2'/>
<id>urn:sha1:478f4b67543824c039d2f7afec6af88a59148db2</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>database/sql: add SetMaxOpenConns</title>
<updated>2013-08-30T16:27:33Z</updated>
<author>
<name>Tad Glines</name>
<email>tad.glines@gmail.com</email>
</author>
<published>2013-08-30T16:27:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=41c5d8d85f6c031c591c26404a5009a333d5d974'/>
<id>urn:sha1:41c5d8d85f6c031c591c26404a5009a333d5d974</id>
<content type='text'>
Update #4805

Add the ability to set an open connection limit.
Fixed case where the Conn finalCloser was being called with db.mu locked.
Added separate benchmarks for each path for Exec and Query.
Replaced slice based idle pool with list based idle pool.

R=bradfitz
CC=golang-dev
https://golang.org/cl/10726044
</content>
</entry>
<entry>
<title>undo CL 10726044 / c9bea548fb6f</title>
<updated>2013-08-30T00:26:00Z</updated>
<author>
<name>Brad Fitzpatrick</name>
<email>bradfitz@golang.org</email>
</author>
<published>2013-08-30T00:26:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=9456adb36b3731e1e4accadddd7cd2abf5a911b8'/>
<id>urn:sha1:9456adb36b3731e1e4accadddd7cd2abf5a911b8</id>
<content type='text'>
Breaks build, and has a race.

««« original CL description
database/sql: add SetMaxOpenConns

Update #4805

Add the ability to set an open connection limit.
Fixed case where the Conn finalCloser was being called with db.mu locked.
Added seperate benchmarks for each path for Exec and Query.
Replaced slice based idle pool with list based idle pool.

R=bradfitz
CC=golang-dev
https://golang.org/cl/10726044

»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/13252046
</content>
</entry>
<entry>
<title>database/sql: add SetMaxOpenConns</title>
<updated>2013-08-30T00:20:39Z</updated>
<author>
<name>Tad Glines</name>
<email>tad.glines@gmail.com</email>
</author>
<published>2013-08-30T00:20:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=4572e4848364b6098b565a2ef480e9b4e8ff5977'/>
<id>urn:sha1:4572e4848364b6098b565a2ef480e9b4e8ff5977</id>
<content type='text'>
Update #4805

Add the ability to set an open connection limit.
Fixed case where the Conn finalCloser was being called with db.mu locked.
Added seperate benchmarks for each path for Exec and Query.
Replaced slice based idle pool with list based idle pool.

R=bradfitz
CC=golang-dev
https://golang.org/cl/10726044
</content>
</entry>
<entry>
<title>database/sql: make Rows.Next returning false always implicitly call</title>
<updated>2013-08-16T01:23:35Z</updated>
<author>
<name>Nigel Tao</name>
<email>nigeltao@golang.org</email>
</author>
<published>2013-08-16T01:23:35Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go/commit/?id=bc2126507472e51a6820aecce9f07df6e4231a0a'/>
<id>urn:sha1:bc2126507472e51a6820aecce9f07df6e4231a0a</id>
<content type='text'>
Rows.Close.

Previously, callers that followed the example code (but not call
rows.Close after "for rows.Next() { ... }") could leak statements if
the driver returned an error other than io.EOF.

R=bradfitz, alex.brainman
CC=golang-dev, rsc
https://golang.org/cl/12677050
</content>
</entry>
</feed>
