-
Notifications
You must be signed in to change notification settings - Fork 0
[ME-4546] Clean-Up Fork, Add Custom B0 Proxy Support #4
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
Conversation
a871443 to
0ede7d8
Compare
0ede7d8 to
3d1dc37
Compare
| @@ -1,60 +0,0 @@ | |||
| //go:build go1.10 | |||
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.
im removing this because we dont care about supporting go 1.10
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.
Pull Request Overview
This PR cleans up the fork while adding support for a custom B0 proxy along with new logging and token handling improvements. Key changes include updating type handling in read/write functions, adding new token types and helper structs (such as envChange and loginToken), and introducing debug logging controlled by the BORDER0_MSSQL_PROXY_DEBUG environment variable. The PR also removes an outdated example test file.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| types.go | Sets ti.Size and allocates ti.Buffer; legacy writeLongLenType code now commented out. |
| token.go | Adds new token definitions and returns token data (e.g. envChange, loginToken); debug logs marked with “FIXME: REMOVE” are introduced. |
| tds.go | Introduces new session fields (id, border0DebugLogs), updates packet header handling, and adds debug prints based on the new debug flag. |
| mssql.go | Adds a Spid() getter method. |
| lastinsertid_example_test.go | Removed example test code file. |
| buf.go | Adds new fields (wSpid, rSpid, serverConn) and modifies BeginRead behavior with new options. |
| session.go | Adjusts prelogin fields (e.g. preloginTHREADID) and updates version hardcoding. |
[ME-4546] Clean-Up Fork, Add Custom B0 Proxy Support
Includes fixes for https://mysocket.atlassian.net/browse/ME-4463