From e12ce1e4005fcefd7a3537c433e6a60044160086 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Thu, 8 Dec 2016 13:07:35 -0800 Subject: [PATCH] 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 --- src/database/sql/sql.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.50.0