aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorDaniel Theophanes <kardianos@gmail.com>2016-12-08 13:07:35 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2016-12-09 03:15:22 +0000
commite12ce1e4005fcefd7a3537c433e6a60044160086 (patch)
tree5bd3e8d607daa5e168447d3714a1f363316722a2 /src/database/sql
parent9ad47c4f67d592c768435f0c04a6d61ebee8c06f (diff)
downloadgo-e12ce1e4005fcefd7a3537c433e6a60044160086.tar.xz
database/sql: document that drivers may not return right after cancel
Fixes #18168 Change-Id: Idbfe3d4daedd93c7caf6f1770ecd988e9af39949 Reviewed-on: https://go-review.googlesource.com/34144 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/database/sql')
-rw-r--r--src/database/sql/sql.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go
index 3d957e1450..1cc1687604 100644
--- a/src/database/sql/sql.go
+++ b/src/database/sql/sql.go
@@ -8,7 +8,10 @@
// The sql package must be used in conjunction with a database driver.
// See https://golang.org/s/sqldrivers for a list of drivers.
//
-// For more usage examples, see the wiki page at
+// Drivers that do not support context cancelation will not return until
+// after the query is completed.
+//
+// For usage examples, see the wiki page at
// https://golang.org/s/sqlwiki.
package sql