]> Cypherpunks repositories - gostls13.git/commit
database/sql: add support for decimal interface
authorDaniel Theophanes <kardianos@gmail.com>
Fri, 26 Apr 2019 19:49:23 +0000 (12:49 -0700)
committerDaniel Theophanes <kardianos@gmail.com>
Thu, 13 Jun 2019 16:59:01 +0000 (16:59 +0000)
commit683ffe09f66f0834baf039deeabe16eec6b09daa
tree46ca283a2cc566d294ff672b5391279087d7f6e3
parentdc63b59630cbc7fe1b039757bac0d6f713dfc26d
database/sql: add support for decimal interface

Add support for scanning decimal types into values. If the dest
supports the decimal composer interface and the src supports
the decimal decomposer, set the value of the decimal when Scanning.

Add support for sending decimal decomposer interface values
as parameters.

For #30870

Change-Id: Ic5dbf9069df8d56405852b17542a9188d55c2947
Reviewed-on: https://go-review.googlesource.com/c/go/+/174181
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/database/sql/convert.go
src/database/sql/convert_test.go
src/database/sql/driver/types.go
src/database/sql/driver/types_test.go
src/database/sql/sql_test.go