2
0

Fix: RowScanner errors are fatal to Rows

https://github.com/jackc/pgx/issues/1654
This commit is contained in:
Jack Christensen
2023-06-20 08:48:06 -05:00
parent 0d14b87140
commit 91cba90e8d
2 changed files with 21 additions and 1 deletions
+5 -1
View File
@@ -231,7 +231,11 @@ func (rows *baseRows) Scan(dest ...any) error {
if len(dest) == 1 {
if rc, ok := dest[0].(RowScanner); ok {
return rc.ScanRow(rows)
err := rc.ScanRow(rows)
if err != nil {
rows.fatal(err)
}
return err
}
}