fix(postgres): fix buffer management in PgCopyIn.read_from (#2630)

This commit is contained in:
Jesse Wang
2023-07-25 11:07:29 +12:00
committed by GitHub
parent f2bb464bcd
commit 94379d88b3
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ impl WriteBuffer {
self.buf.truncate(self.bytes_written);
self.buf.extend_from_slice(slice);
}
self.advance(slice.len());
self.sanity_check();
}