-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Describe the bug
Rows does not correctly works for QueryRow.
To Reproduce
pgxRows := pgxpoolmock.NewRows([]string{"server_version"}).AddRow("15.1").ToPgxRows()
pgxRows.Next() // This line is necessary to prevent panic during Scan.
db.EXPECT().QueryRow(gomock.Any(), "SHOW server_version;").Return(pgxRows)
github.com/driftprogramming/pgxpoolmock.(*rowSets).Scan(0x41ee87?, {0xc000b5e820?, 0x2cac0a0?, 0x3933e01?})
go/pkg/mod/github.com/driftprogramming/[email protected]/rows.go:69 +0x5f0
Expected behavior
Add Row struct that will correctly implement pgx.Row interface.
Metadata
Metadata
Assignees
Labels
No labels