-
Notifications
You must be signed in to change notification settings - Fork 292
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
Draft | Addressing the issue with wrong exception when column decryption fails. #1897
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,7 +149,7 @@ internal static class TdsEnums | |
public const byte SQLDONEINPROC = 0xff; | ||
public const byte SQLOFFSET = 0x78; | ||
public const byte SQLORDER = 0xa9; | ||
public const byte SQLDEBUG_CMD = 0x60; | ||
public const byte SQLDEBUG_CMD = 0x60; // This needs more info | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Who needs to provide the info? the SQL Server team? The spec? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have to provide more info and add it here 😄 . This is just a replacement for more info and triggering pipelines. |
||
public const byte SQLLOGINACK = 0xad; | ||
public const byte SQLFEATUREEXTACK = 0xae; // TDS 7.4 - feature ack | ||
public const byte SQLSESSIONSTATE = 0xe4; // TDS 7.4 - connection resiliency session state | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand what the comment is trying to communicate here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the comment since this was a draft PR and I needed to make a change to run the pipelines I did not pay much attention to it.
The specs do not provide any info on that TDS token stream. At first, I did not notice that 0x60 is available in TDSEnums. basically, the issue was raised by PS team. They tried to provide an invalid token(AE token not TDS header token) to decrypt an encrypted column. Server returns 96 instead of error token (0xaa).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're getting it from the server then either they need to update the spec or stop sending it. I think updating the spec is easier.