Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -6013,7 +6013,7 @@ private TdsOperationStatus TryReadSqlStringValue(SqlBuffer value, byte type, int
}
else
{
s = "";
s = string.Empty;
}
}

Expand Down Expand Up @@ -12859,7 +12859,14 @@ internal int ReadPlpUnicodeChars(ref char[] buff, int offst, int len, TdsParserS
// requested length is -1 or larger than the actual length of data. First call to this method
// should be preceeded by a call to ReadPlpLength or ReadDataLength.
// Returns the actual chars read.
internal TdsOperationStatus TryReadPlpUnicodeChars(ref char[] buff, int offst, int len, TdsParserStateObject stateObj, out int totalCharsRead, bool supportRentedBuff, ref bool rentedBuff)
internal TdsOperationStatus TryReadPlpUnicodeChars(
ref char[] buff,
int offst,
int len,
TdsParserStateObject stateObj,
out int totalCharsRead,
bool supportRentedBuff,
ref bool rentedBuff)
{
int charsRead = 0;
int charsLeft = 0;
Expand All @@ -12872,7 +12879,7 @@ internal TdsOperationStatus TryReadPlpUnicodeChars(ref char[] buff, int offst, i
return TdsOperationStatus.Done; // No data
}

Debug.Assert(((ulong)stateObj._longlen != TdsEnums.SQL_PLP_NULL), "Out of sync plp read request");
Debug.Assert((ulong)stateObj._longlen != TdsEnums.SQL_PLP_NULL, "Out of sync plp read request");

Debug.Assert((buff == null && offst == 0) || (buff.Length >= offst + len), "Invalid length sent to ReadPlpUnicodeChars()!");
charsLeft = len;
Expand Down
Loading