File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
src/Microsoft.Data.SqlClient
netcore/src/Microsoft/Data/SqlClient
src/Microsoft/Data/SqlClient Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3533,7 +3533,7 @@ private TdsOperationStatus TryNextResult(out bool more)
3533
3533
if ( result != TdsOperationStatus . Done )
3534
3534
{
3535
3535
more = false ;
3536
- return TdsOperationStatus . Done ;
3536
+ return result ;
3537
3537
}
3538
3538
3539
3539
// In the case of not closing the reader, null out the metadata AFTER
Original file line number Diff line number Diff line change 3
3
// See the LICENSE file in the project root for more information.
4
4
5
5
using System ;
6
+ using System . Diagnostics ;
6
7
7
8
namespace Microsoft . Data . SqlClient
8
9
{
@@ -101,7 +102,7 @@ public int RequiredLength
101
102
}
102
103
103
104
/// <summary>
104
- /// returns a boolean value indicating if there are enough total bytes availble in the <see cref="Buffer"/> to read the tds header
105
+ /// returns a boolean value indicating if there are enough total bytes available in the <see cref="Buffer"/> to read the tds header
105
106
/// </summary>
106
107
public bool HasHeader => _totalLength >= TdsEnums . HEADER_LEN ;
107
108
@@ -139,6 +140,7 @@ public void CheckDisposed()
139
140
}
140
141
}
141
142
143
+ [ Conditional ( "DEBUG" ) ]
142
144
internal void SetCreatedBy ( int creator ) => SetCreatedByImpl ( creator ) ;
143
145
144
146
partial void SetCreatedByImpl ( int creator ) ;
Original file line number Diff line number Diff line change @@ -2086,7 +2086,7 @@ internal void ReadSniSyncOverAsync()
2086
2086
}
2087
2087
2088
2088
PacketHandle readPacket = default ;
2089
- bool readFromNetwork = PartialPacketContainsCompletePacket ( ) ;
2089
+ bool readFromNetwork = ! PartialPacketContainsCompletePacket ( ) ;
2090
2090
uint error ;
2091
2091
2092
2092
RuntimeHelpers . PrepareConstrainedRegions ( ) ;
You can’t perform that action at this time.
0 commit comments