]> Cypherpunks repositories - gostls13.git/commit
database/sql: allow Stmt Query and Exec methods to open a new conn
authorDaniel Theophanes <kardianos@gmail.com>
Mon, 22 May 2017 02:51:46 +0000 (19:51 -0700)
committerDaniel Theophanes <kardianos@gmail.com>
Mon, 22 May 2017 15:02:35 +0000 (15:02 +0000)
commit1865a56e8de5b0ffd80a6894ed49eac8132b8b5f
tree3178c9fce0f7375a6278b082127708c81e7a904c
parentd79ec64fe107c0566ac38ad62dcae45c3fbe07fb
database/sql: allow Stmt Query and Exec methods to open a new conn

Query and Exec functions on DB first attempt to get a cached
connection before requesting the connection pool to ignore
the cache and get a new connection. This change aligns Stmt to
that behavior as well.

Fixes #20433

Change-Id: Idda5f61927289d7ad0882effa3a50ffc9efd88e6
Reviewed-on: https://go-review.googlesource.com/43790
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql.go
src/database/sql/sql_test.go