1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:24:45 -07:00

Make argument order match accepted proposal.

This commit is contained in:
Jack Christensen 2024-11-09 08:43:23 -06:00
parent ae87d0c01d
commit 42da570e9e
3 changed files with 3 additions and 3 deletions

View File

@ -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, Columns() []string #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

View File

@ -524,7 +524,7 @@ type RowsColumnScanner interface {
// 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.
ScanColumn(index int, dest any) error
ScanColumn(dest any, index int) error
}
// Tx is a transaction.

View File

@ -3400,7 +3400,7 @@ func (rs *Rows) Scan(dest ...any) error {
err := driver.ErrSkip
if rowsColumnScanner, ok := rs.rowsi.(driver.RowsColumnScanner); ok {
err = rowsColumnScanner.ScanColumn(i, dest[i])
err = rowsColumnScanner.ScanColumn(dest[i], i)
}
if err == driver.ErrSkip {