Conversation
|
@microsoft-github-policy-service agree |
| rec_type := buffer[offset] | ||
| if rec_type == preloginTERMINATOR { | ||
| return &preloginOption{token: rec_type}, nil | ||
| } else if rec_type == preloginTHREADID { |
There was a problem hiding this comment.
As per https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-tds/60f56408-0188-4cd5-8b90-25c6f2423868 there seems to be no constraint on the TDS-Version.
As I understand the documentation, the parameter is used for the client to communicate its thread-id for debugging-purposes. If sent by the server, it should be empty in any case.
|
thx for submitting a PR! -- FAIL: TestReturnStatusWithQuery (0.07s) |
| } | ||
|
|
||
| func readTypeInfo(r *tdsBuffer) (res typeInfo) { | ||
| func readTypeInfo(sess *tdsSession, r *tdsBuffer) (res typeInfo) { |
There was a problem hiding this comment.
I'm not sure about the code-style. I did not want to copy the whole readTypeInfo func for v7.1 compatibility as the version-info is needed in readVarLen
|
There still seems to be a problem with the transactions. |
This PR adds rough compatibility to older sql-servers (TDS <= 7.1)
Tested against our internal legacy mssql-server