go/src/database/sql
Daniel Theophanes 6e59c73a9f database/sql: check to see if ctx is cancelable before await
Prevent queries from starting a goroutine if the context is
not able to be canceled.

Fixes #23879

Change-Id: I392047bd53d7f796219dd12ee11b07303658fdaf
Reviewed-on: https://go-review.googlesource.com/102478
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-03-27 18:40:46 +00:00
..
driver database/sql: buffers provided to Rows.Next should not be modified by drivers 2018-01-25 19:14:14 +00:00
convert.go database/sql: scan into *time.Time without reflection 2017-10-25 19:29:16 +00:00
convert_test.go database/sql: fix TestConversions when count > 1 2018-01-25 03:39:24 +00:00
ctxutil.go database/sql: fix ctx.Done() == nil check 2017-11-15 21:28:27 +00:00
doc.txt database/sql: fix outdated package name in doc.txt 2017-06-30 19:11:17 +00:00
example_test.go database/sql: add more examples 2018-03-25 05:09:57 +00:00
fakedb_test.go all: remove duplicate word "the" 2018-02-20 16:45:55 +00:00
sql.go database/sql: check to see if ctx is cancelable before await 2018-03-27 18:40:46 +00:00
sql_test.go all: fix misspellings 2018-02-20 21:02:58 +00:00