We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5100622 commit 7443982Copy full SHA for 7443982
1 file changed
postgres-protocol/src/message/frontend.rs
@@ -260,7 +260,8 @@ where
260
I: IntoIterator<Item = (&'a str, &'a str)>,
261
{
262
write_body(buf, |buf| {
263
- buf.put_i32(196_608);
+ // postgres protocol version 3.0(196608) in bigger-endian
264
+ buf.put_i32(0x00_03_00_00);
265
for (key, value) in parameters {
266
write_cstr(key.as_bytes(), buf)?;
267
write_cstr(value.as_bytes(), buf)?;
0 commit comments