Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 4bc4ed7

Browse files
committed
Ready for query can happen here already
1 parent 24ed86a commit 4bc4ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio-postgres/src/query.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async fn start(client: &InnerClient, buf: Bytes) -> Result<Responses, Error> {
214214
loop {
215215
match responses.next().await? {
216216
Message::ParseComplete => {}
217-
Message::BindComplete => return Ok(responses),
217+
Message::BindComplete | Message::ReadyForQuery(_) => return Ok(responses),
218218
m => return Err(Error::unexpected_message(m)),
219219
}
220220
}

0 commit comments

Comments
 (0)