mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
database/sql: fix Rows.Columns() documentation
Fixes #27202
Change-Id: I83620748a81500e433795c7b2b7f13399d17f777
GitHub-Last-Rev: 64457e12ce
GitHub-Pull-Request: golang/go#27472
Reviewed-on: https://go-review.googlesource.com/133057
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
This commit is contained in:
parent
5188c87c95
commit
5ed30d82b7
1 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue