Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge | Align Task usage / ArrayPool / IsColumnEncryptionSupported netcore/netfx #2982

Merged
merged 14 commits into from
Nov 26, 2024
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