1
0
mirror of https://github.com/golang/go synced 2024-11-19 19:04:47 -07:00
go/src/database/sql
Eric Rykwalder 16f32a0726 database/sql: return context errors from Rows.Scan
The previous implementation would return "sql: Rows are closed" for any
context errors, which can be confusing for context timeouts or
cancelations.

Fixes #24431

Change-Id: I884904ec43204c43f4e94e2335b2802aab77a888
Reviewed-on: https://go-review.googlesource.com/104276
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-04-11 19:45:16 +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_test.go database/sql: fix TestConversions when count > 1 2018-01-25 03:39:24 +00:00
convert.go database/sql: scan into *time.Time without reflection 2017-10-25 19:29:16 +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_test.go database/sql: return context errors from Rows.Scan 2018-04-11 19:45:16 +00:00
sql.go database/sql: return context errors from Rows.Scan 2018-04-11 19:45:16 +00:00