]> Cypherpunks repositories - gostls13.git/commit
database/sql: add note to Scanner that the database owns values
authorDaniel Theophanes <kardianos@gmail.com>
Fri, 20 Apr 2018 20:18:09 +0000 (13:18 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 11 May 2018 20:28:02 +0000 (20:28 +0000)
commit94280237f4863db90e442481c5cc4edfd13389a9
tree0f34767e8886ac96bb771c3a1e6702580e25bf98
parent4122319e5a6e5fd4e1f1fcab3b2981df91bc05ad
database/sql: add note to Scanner that the database owns values

It was unclear that users must copy values out of the src value
for value types like []byte.

Fixes #24492

Change-Id: I99ad61e0ad0075b9efc5ee4e0d067f752f91b8fa
Reviewed-on: https://go-review.googlesource.com/108535
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql.go