From d4ab73d1dfd60bfe1cf24c3682ba8110994b49dd Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Tue, 13 Jun 2017 12:35:20 -0700 Subject: [PATCH] doc: add go1.9 release notes for database/sql changes Change-Id: I9b0f17e123805ad9f526f5ea44b23cf4dbadcdcc Reviewed-on: https://go-review.googlesource.com/45611 Reviewed-by: Brad Fitzpatrick --- doc/go1.9.html | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/doc/go1.9.html b/doc/go1.9.html index 03ff12d2eb..543a9ab74c 100644 --- a/doc/go1.9.html +++ b/doc/go1.9.html @@ -297,15 +297,33 @@ type T1 = T2
database/sql

- TODO: https://golang.org/cl/35476: proper prepared statement support in transactions + The package will now use a cached Stmt if + available in Tx.Stmt. + This prevents statements from being re-prepared each time + Tx.Stmt is called. +

+ +

+ The package now allows drivers to implement their own argument checkers by implementing + driver.NamedValueChecker. + This also allows drivers to support OUTPUT and INOUT parameter types. + Out should be used to return output parameters + when supported by the driver.

- TODO: https://golang.org/cl/39031: support scanning into user defined string types + Rows.Scan can now scan user-defined string types. + Previously the package supported scanning into numeric types like type Int int64. It now also supports + scanning into string types like type String string.

- TODO: https://golang.org/cl/40694: allow using a single connection from the database + The new DB.Conn method returns the new + Conn type representing an + exclusive connection to the database from the connection pool. All queries run on + a Conn will use the same underlying + connection until Conn.Close is called + to return the connection to the connection pool.