]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql/driver: update Value doc, can be driver supported type
authorDaniel Theophanes <kardianos@gmail.com>
Mon, 18 Dec 2017 20:13:17 +0000 (12:13 -0800)
committerDaniel Theophanes <kardianos@gmail.com>
Mon, 18 Dec 2017 20:24:12 +0000 (20:24 +0000)
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 <bradfitz@golang.org>
src/database/sql/driver/driver.go

index 83b2b3f535e7a8bf4afefce8c396dfab5ceccd78..19a3a4f7c9aa2bcaa23c559f93d80e101a52bf1e 100644 (file)
@@ -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