Skip to content

Conversation

ramnivas
Copy link
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
@sfackler
Copy link
Owner

Thanks!

1 similar comment
@ramnivas
Copy link
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