aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorAlexey Palazhchenko <alexey.palazhchenko@gmail.com>2018-09-03 16:24:12 +0000
committerDaniel Theophanes <kardianos@gmail.com>2018-09-03 16:28:42 +0000
commit5ed30d82b7ad4d5be12db588f088c34f8c1c0a86 (patch)
tree21dfd937eb210e063d6131a72961a3330dcc2a79 /src/database/sql
parent5188c87c955a9caf64a0fb2efd8ea95ee9b30a41 (diff)
downloadgo-5ed30d82b7ad4d5be12db588f088c34f8c1c0a86.tar.xz
database/sql: fix Rows.Columns() documentation
Fixes #27202 Change-Id: I83620748a81500e433795c7b2b7f13399d17f777 GitHub-Last-Rev: 64457e12ceaa408efc7f75091f1b30c35b8e5d44 GitHub-Pull-Request: golang/go#27472 Reviewed-on: https://go-review.googlesource.com/133057 Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Diffstat (limited to 'src/database/sql')
-rw-r--r--src/database/sql/sql.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database/sql/sql.go b/src/database/sql/sql.go
index 36179855db..7537f87d47 100644
--- a/src/database/sql/sql.go
+++ b/src/database/sql/sql.go
@@ -2735,8 +2735,7 @@ func (rs *Rows) Err() error {
}
// Columns returns the column names.
-// Columns returns an error if the rows are closed, or if the rows
-// are from QueryRow and there was a deferred error.
+// Columns returns an error if the rows are closed.
func (rs *Rows) Columns() ([]string, error) {
rs.closemu.RLock()
defer rs.closemu.RUnlock()