]> Cypherpunks repositories - gostls13.git/commitdiff
database/sql: fix Rows.Columns() documentation
authorAlexey Palazhchenko <alexey.palazhchenko@gmail.com>
Mon, 3 Sep 2018 16:24:12 +0000 (16:24 +0000)
committerDaniel Theophanes <kardianos@gmail.com>
Mon, 3 Sep 2018 16:28:42 +0000 (16:28 +0000)
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>
src/database/sql/sql.go

index 36179855db2b6d247e7258913222fc6794bc72ad..7537f87d47cf5ca55a19c0d1ef39f3d226417a7b 100644 (file)
@@ -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()