mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-14 08:20:25 +00:00
fix(postgres): fix buffer management in PgCopyIn.read_from (#2630)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user