diff --git a/src/messages/extendedquery.rs b/src/messages/extendedquery.rs index f50c377..a623216 100644 --- a/src/messages/extendedquery.rs +++ b/src/messages/extendedquery.rs @@ -23,7 +23,7 @@ impl Message for Parse { fn message_length(&self) -> usize { 4 + codec::option_string_len(&self.name) // name + (1 + self.query.len()) // query - + (4 * self.type_oids.len()) // type oids + + 2 + (4 * self.type_oids.len()) // type oids } fn encode_body(&self, buf: &mut bytes::BytesMut) -> PgWireResult<()> {