1
0
mirror of https://github.com/golang/go synced 2024-11-19 13:54:56 -07:00
go/src/database/sql
Daniel Theophanes 5a45a157f2 database/sql: support scanning into user defined string types
User defined numeric types such as "type Int int64" have
been able to be scanned into without a custom scanner by
using the reflect scan code path used to convert between
various numeric types. Add in a path for string types
for symmetry and least surprise.

Fixes #18101

Change-Id: I00553bcf021ffe6d95047eca0067ee94b54ff501
Reviewed-on: https://go-review.googlesource.com/39031
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-31 05:02:02 +00:00
..
driver database/sql: do not store Tx options in Context 2016-12-14 18:13:13 +00:00
convert_test.go database/sql: support scanning into user defined string types 2017-03-31 05:02:02 +00:00
convert.go database/sql: support scanning into user defined string types 2017-03-31 05:02:02 +00:00
ctxutil.go database/sql: record the context error in Rows if canceled 2017-02-08 18:30:39 +00:00
doc.txt
example_test.go all: minor vet fixes 2016-10-24 17:27:37 +00:00
fakedb_test.go database/sql: document expectations for named parameters 2016-12-01 16:52:12 +00:00
sql_test.go database/sql: support scanning into user defined string types 2017-03-31 05:02:02 +00:00
sql.go database/sql: proper prepared statement support in transactions 2017-03-08 17:32:12 +00:00