go/src/database/sql
Matt Dee bd08803680 database/sql: fail on unsupported options when context is un-cancellable
Currently, the check for `ctx.Done() == context.Background().Done()`
comes before the check to see if we are ignoring any options.  That
check should be done earlier, so that the options are not silently
ignored.

Fixes #21350

Change-Id: I3704e4209854c7d99f3f92498bae831cabc7e419
Reviewed-on: https://go-review.googlesource.com/53970
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-08-09 20:06:20 +00:00
..
driver database/sql: allow drivers to support custom arg types 2017-05-18 22:22:31 +00:00
convert.go database/sql: allow drivers to support custom arg types 2017-05-18 22:22:31 +00:00
convert_test.go database/sql: allow drivers to support custom arg types 2017-05-18 22:22:31 +00:00
ctxutil.go database/sql: fail on unsupported options when context is un-cancellable 2017-08-09 20:06:20 +00:00
doc.txt database/sql: fix outdated package name in doc.txt 2017-06-30 19:11:17 +00:00
example_test.go all: minor vet fixes 2016-10-24 17:27:37 +00:00
fakedb_test.go database/sql: correct level of write to same var for race detector 2017-06-12 21:58:53 +00:00
sql.go database/sql: fix wrong method name in description 2017-07-18 04:42:09 +00:00
sql_test.go database/sql: fail on unsupported options when context is un-cancellable 2017-08-09 20:06:20 +00:00