mirror of https://github.com/jackc/pgx.git
parent
c65fd8e2df
commit
1b54d15e93
2
doc.go
2
doc.go
|
@ -53,7 +53,7 @@ pgx implements Query and Scan in the familiar database/sql style.
|
||||||
|
|
||||||
// Any errors encountered by rows.Next or rows.Scan will be returned here
|
// Any errors encountered by rows.Next or rows.Scan will be returned here
|
||||||
if rows.Err() != nil {
|
if rows.Err() != nil {
|
||||||
return err
|
return rows.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
// No errors found - do something with sum
|
// No errors found - do something with sum
|
||||||
|
|
Loading…
Reference in New Issue