Skip to content

Commit 9f44ae8

Browse files
committed
On Close, reset _canReadChunk & _charsRemoved
1 parent e2dec42 commit 9f44ae8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlStream.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,10 @@ public void Close()
505505
((IDisposable)_xmlReader).Dispose();
506506
_reader = null;
507507
_xmlReader = null;
508+
_canReadChunk = false;
508509
_xmlWriter = null;
509510
_memoryStream = null;
511+
_charsRemoved = 0;
510512
}
511513

512514
public int ColumnOrdinal => _columnOrdinal;

0 commit comments

Comments
 (0)