aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/driver
diff options
context:
space:
mode:
authorDaniel Theophanes <kardianos@gmail.com>2017-12-18 12:13:17 -0800
committerDaniel Theophanes <kardianos@gmail.com>2017-12-18 20:24:12 +0000
commit3aeb3950a9eb02b7d07e68b8b3535540854951e0 (patch)
tree44aed04ce4025a26fafe2505d1a8f0bfeea26f04 /src/database/sql/driver
parent54f0520f940f7edd916c34b7d44f9fc2c9e48cf7 (diff)
downloadgo-3aeb3950a9eb02b7d07e68b8b3535540854951e0.tar.xz
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 <bradfitz@golang.org>
Diffstat (limited to 'src/database/sql/driver')
-rw-r--r--src/database/sql/driver/driver.go3
1 files changed, 2 insertions, 1 deletions
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