Skip to content

missing checking on rows.Err() #1292

@TommyLeng

Description

@TommyLeng

https://github.com/uptrace/bun/blob/master/model_map.go
https://github.com/uptrace/bun/blob/master/model_scan.go

According to the https://go.dev/doc/tutorial/database-access
We should add

if err := rows.Err(); err != nil {
}

But it is missing in these 2 files

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions