mirror of
https://github.com/golang/go
synced 2024-11-25 07:17:56 -07:00
Make argument order match accepted proposal.
This commit is contained in:
parent
ae87d0c01d
commit
42da570e9e
@ -2,4 +2,4 @@ pkg database/sql/driver, type RowsColumnScanner interface { Close, Columns, Next
|
|||||||
pkg database/sql/driver, type RowsColumnScanner interface, Close() error #67546
|
pkg database/sql/driver, type RowsColumnScanner interface, Close() error #67546
|
||||||
pkg database/sql/driver, type RowsColumnScanner interface, Columns() []string #67546
|
pkg database/sql/driver, type RowsColumnScanner interface, Columns() []string #67546
|
||||||
pkg database/sql/driver, type RowsColumnScanner interface, Next([]Value) error #67546
|
pkg database/sql/driver, type RowsColumnScanner interface, Next([]Value) error #67546
|
||||||
pkg database/sql/driver, type RowsColumnScanner interface, ScanColumn(int, interface{}) error #67546
|
pkg database/sql/driver, type RowsColumnScanner interface, ScanColumn(interface{}, int) error #67546
|
||||||
|
@ -524,7 +524,7 @@ type RowsColumnScanner interface {
|
|||||||
|
|
||||||
// ScanColumn copies the column in the current row into the value pointed at by
|
// ScanColumn copies the column in the current row into the value pointed at by
|
||||||
// dest. It returns [ErrSkip] to fall back to the normal [database/sql] scanning path.
|
// dest. It returns [ErrSkip] to fall back to the normal [database/sql] scanning path.
|
||||||
ScanColumn(index int, dest any) error
|
ScanColumn(dest any, index int) error
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tx is a transaction.
|
// Tx is a transaction.
|
||||||
|
@ -3400,7 +3400,7 @@ func (rs *Rows) Scan(dest ...any) error {
|
|||||||
err := driver.ErrSkip
|
err := driver.ErrSkip
|
||||||
|
|
||||||
if rowsColumnScanner, ok := rs.rowsi.(driver.RowsColumnScanner); ok {
|
if rowsColumnScanner, ok := rs.rowsi.(driver.RowsColumnScanner); ok {
|
||||||
err = rowsColumnScanner.ScanColumn(i, dest[i])
|
err = rowsColumnScanner.ScanColumn(dest[i], i)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == driver.ErrSkip {
|
if err == driver.ErrSkip {
|
||||||
|
Loading…
Reference in New Issue
Block a user