Heschi Kreinick submitted this change.
doc/go1.17: document database/sql changes for Go 1.17
For #44513
Fixes #46008
Change-Id: If80d484f73a0eb6946abdc654eb2c0d3dd6db416
Reviewed-on: https://go-review.googlesource.com/c/go/+/320251
Reviewed-by: Heschi Kreinick <hes...@google.com>
Trust: Robert Findley <rfin...@google.com>
---
M doc/go1.17.html
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/doc/go1.17.html b/doc/go1.17.html
index 4561b6c..3534f7b 100644
--- a/doc/go1.17.html
+++ b/doc/go1.17.html
@@ -320,11 +320,19 @@
<dl id="database/sql"><dt><a href="/pkg/database/sql/">database/sql</a></dt>
<dd>
<p><!-- CL 258360 -->
- TODO: <a href="https://golang.org/cl/258360">https://golang.org/cl/258360</a>: close driver.Connector if it implements io.Closer
+ The <a href="/pkg/database/sql/#DB.Close"><code>DB.Close</code></a> method now closes
+ the <code>connector</code> field if the type in this field implements the
+ <a href="/pkg/io/#Closer"><code>io.Closer</code></a> interface.
</p>
<p><!-- CL 311572 -->
- TODO: <a href="https://golang.org/cl/311572">https://golang.org/cl/311572</a>: add NullInt16 and NullByte
+ The new
+ <a href="/pkg/database/sql/#NullInt16"><code>NullInt16</code></a>
+ and
+ <a href="/pkg/database/sql/#NullByte"><code>NullByte</code></a>
+ structs represent the int16 and byte values that may be null. These can be used as
+ destinations of the <a href="/pkg/database/sql/#Scan"><code>Scan</code></a> method,
+ similar to NullString.
</p>
</dd>
</dl><!-- database/sql -->
To view, visit change 320251. To unsubscribe, or for help writing mail filters, visit settings.