Skip to content

Commit 91144b9

Browse files
authored
Merge pull request #669 from pymongo/master
Make postgres protocol version value more readable
2 parents 5100622 + 7443982 commit 91144b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

postgres-protocol/src/message/frontend.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ where
260260
I: IntoIterator<Item = (&'a str, &'a str)>,
261261
{
262262
write_body(buf, |buf| {
263-
buf.put_i32(196_608);
263+
// postgres protocol version 3.0(196608) in bigger-endian
264+
buf.put_i32(0x00_03_00_00);
264265
for (key, value) in parameters {
265266
write_cstr(key.as_bytes(), buf)?;
266267
write_cstr(value.as_bytes(), buf)?;

0 commit comments

Comments
 (0)