-
Notifications
You must be signed in to change notification settings - Fork 281
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
State Report Trace doesn't match the format string #939
Comments
Thanks @lbargery |
Thanks! If you do shift them up you get _fMARS is false but _pMarsPhysicalConObj is true. Any pointers on how this could happen? Trying to debug myself before raising another issue :) |
It's just weirdly written..
you'd expect "true" when I'll see what I can do to make more sense.. |
Ah I see! Thanks, that's helpful with debugging further |
Describe the bug
I've been debugging an issue with MARs recently where despite MARs being set to false, the connections still seem to run with _pMarsPhysicalConObj. To try and get further information on this, I turned on verbose logging with a SQL listener and discovered your format string and output are mismatched.
Inside the method TraceString inside TdsParser.cs you have an extra "" for the log which throws things off and you see as the output I get
As you can see, _fMars is coming out as 75 and isYukon as (null). I believe they are all shifted by one.
To reproduce
Not needed really - bug is clear I hope!
Expected behavior
Log should print correctly
Further technical details
Microsoft.Data.SqlClient version: 2.1.1
.NET core: 3.1
The text was updated successfully, but these errors were encountered: