mirror of
https://github.com/golang/go
synced 2024-11-12 08:20:22 -07:00
database/sql: fix Rows.Columns() documentation
Fixes #27202 Change-Id: I3e3bdb1c8d655deb6fdd374868fcac0621f8fa0c
This commit is contained in:
parent
5188c87c95
commit
64457e12ce
@ -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…
Reference in New Issue
Block a user