]> Cypherpunks repositories - gostls13.git/commit
database/sql: additional underlying types in DefaultValueConverter
authorScott Bell <scott@sctsm.com>
Wed, 18 May 2016 16:56:51 +0000 (09:56 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 17 Nov 2016 00:09:27 +0000 (00:09 +0000)
commitd7c0de98a96893e5608358f7578c85be7ba12b25
tree352d421e81c5b9619f6fd0b3b3234d11fff4b137
parent0df762ed7b2ac9484a4f64450424529ecee8aa7f
database/sql: additional underlying types in DefaultValueConverter

The previous documentation purported to convert underlying strings to
[]byte, which it did not do. This adds support for underlying bool,
string, and []byte, which convert directly to their underlying type.

Fixes #15174.

Change-Id: I7fc4e2520577f097a48f39c9ff6c8160fdfb7be4
Reviewed-on: https://go-review.googlesource.com/27812
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/database/sql/driver/types.go
src/database/sql/driver/types_test.go