Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: emit rows affected attribute #33

Merged
merged 1 commit into from
May 21, 2024

Conversation

nordfjord
Copy link
Contributor

@nordfjord nordfjord commented May 10, 2024

Before this commit the pgx.rows_affected attribute would only be
emitted in case of error. The commit flips the check such that we emit
it when an error has not occurred.

Though I wonder if it's safe to remove the check wholesale

tracer.go Show resolved Hide resolved
Before this commit the `pgx.rows_affected` attribute would only be
emitted in case of error. The commit flips the check such that we emit
it when an error has not occurred.
@nordfjord nordfjord force-pushed the fix/rows-affected branch from 4c5648c to a86006f Compare May 20, 2024 19:12
Copy link
Member

@obitech obitech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@obitech obitech merged commit 32c5de8 into exaring:main May 21, 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