Skip to content

Use sql.ErrNoRows as value for pgx.ErrNoRows#2115

Merged
jackc merged 1 commit into
jackc:masterfrom
ninedraft:sql-err-no-rows
Aug 26, 2024
Merged

Use sql.ErrNoRows as value for pgx.ErrNoRows#2115
jackc merged 1 commit into
jackc:masterfrom
ninedraft:sql-err-no-rows

Conversation

@ninedraft

Copy link
Copy Markdown
Contributor

Remaking pgx.ErrNoRows as wrapper over sql.ErrNoRows

Why not just var ErrNoRows = sql.ErrNoRows?
I want to preserve the original error message in case any tools (log analyzers, for example) depend on the exact string value

Corresponding issue
#1931

@jackc jackc merged commit 97d20cc into jackc:master Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants