sfackler / rust-postgres

Native PostgreSQL driver for the Rust programming language
Apache License 2.0
3.43k stars 436 forks source link

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

Closed ramnivas closed 1 month ago

ramnivas commented 1 month ago

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 commented 1 month ago

Thanks!

ramnivas commented 1 month ago

Thanks!