From: Daniel Theophanes Date: Mon, 18 Dec 2017 20:13:17 +0000 (-0800) Subject: database/sql/driver: update Value doc, can be driver supported type X-Git-Tag: go1.10beta2~91 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3aeb3950a9eb02b7d07e68b8b3535540854951e0;p=gostls13.git database/sql/driver: update Value doc, can be driver supported type The driver.Value type may be more then the documented 6 types if the database driver supports it. Document that fact. Updates #23077 Change-Id: If7e2112fa61a8cc4e155bb31e94e89b20c607242 Reviewed-on: https://go-review.googlesource.com/84636 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/database/sql/driver/driver.go b/src/database/sql/driver/driver.go index 83b2b3f535..19a3a4f7c9 100644 --- a/src/database/sql/driver/driver.go +++ b/src/database/sql/driver/driver.go @@ -15,7 +15,8 @@ import ( ) // Value is a value that drivers must be able to handle. -// It is either nil or an instance of one of these types: +// It is either nil, a type handled by a database driver's NamedValueChecker +// interface, or an instance of one of these types: // // int64 // float64