]> Cypherpunks repositories - gostls13.git/commit
database/sql: fix conversions to and from user-defined types
authorGordon Klaus <gordon.klaus@gmail.com>
Mon, 5 Oct 2015 20:12:46 +0000 (22:12 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 6 Oct 2015 20:59:00 +0000 (20:59 +0000)
commit40457745e51eb327751de5be4c69c9079db69f66
tree5e461df15c60b48668c6ea0096e5132ccac6ad2d
parent50ad3372383a8d47804a213b870eb32e251ca18b
database/sql: fix conversions to and from user-defined types

In particular, don't assume that one reflect.Value can be assigned to another just because they have the same reflect.Kind.

Fixes #12401

Change-Id: Ia4605a5c46557ff8f8f1d44f26d492850666c6d1
Reviewed-on: https://go-review.googlesource.com/15420
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/database/sql/convert.go
src/database/sql/convert_test.go