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

For query_typed, deal with the no-data case. #1165

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

ramnivas
Copy link
Sponsor Contributor

If a query returns no data, we receive Message::NoData, which signals the completion of the query. However, we treated it as a no-op, leading to processing other messages and eventual failure.

This PR fixes the issue and updates the query_typed tests to cover this scenario.

If a query returns no data, we receive `Message::NoData`, which signals
the completion of the query. However, we treated it as a no-op, leading
to processing other messages and eventual failure.

This PR fixes the issue and updates the `query_typed` tests to cover
this scenario.
@sfackler sfackler merged commit 3afcc3d into sfackler:master Jul 23, 2024
4 checks passed
@sfackler
Copy link
Owner

Thanks!

1 similar comment
@ramnivas
Copy link
Sponsor Contributor Author

Thanks!

ramnivas added a commit to exograph/exograph that referenced this pull request Sep 18, 2024
With sfackler/rust-postgres#1165 merged and a new release with that change available in 0.7.12, we no longer need to use our fork.

Compared to sfackler/rust-postgres#1147, there was a name change for `query_typed`, so this commit takes care of that.
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