diff options
| author | Daniel Theophanes <kardianos@gmail.com> | 2017-12-18 12:13:17 -0800 |
|---|---|---|
| committer | Daniel Theophanes <kardianos@gmail.com> | 2017-12-18 20:24:12 +0000 |
| commit | 3aeb3950a9eb02b7d07e68b8b3535540854951e0 (patch) | |
| tree | 44aed04ce4025a26fafe2505d1a8f0bfeea26f04 /src/database/sql | |
| parent | 54f0520f940f7edd916c34b7d44f9fc2c9e48cf7 (diff) | |
| download | go-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')
| -rw-r--r-- | src/database/sql/driver/driver.go | 3 |
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 |
