We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2bb464 commit 94379d8Copy full SHA for 94379d8
sqlx-core/src/net/socket/buffered.rs
@@ -151,7 +151,7 @@ impl WriteBuffer {
151
self.buf.truncate(self.bytes_written);
152
self.buf.extend_from_slice(slice);
153
}
154
-
+ self.advance(slice.len());
155
self.sanity_check();
156
157
sqlx-postgres/src/copy.rs
@@ -229,7 +229,7 @@ impl<C: DerefMut<Target = PgConnection>> PgCopyIn<C> {
229
let buf = conn.stream.write_buffer_mut();
230
231
// CopyData format code and reserved space for length
232
- buf.put_slice(b"d\0\0\0\0");
+ buf.put_slice(b"d\0\0\0\x04");
233
234
let read = match () {
235
// Tokio lets us read into the buffer without zeroing first
0 commit comments