Skip to content

go/mysql: server.go: Add a callback on Handler, ConnectionAuthenticated, which is called immediately after the connection is authenticated.#444

Merged
reltuk merged 2 commits intomainfrom
aaron/connectionauthenticated-callback
Nov 24, 2025
Merged

go/mysql: server.go: Add a callback on Handler, ConnectionAuthenticated, which is called immediately after the connection is authenticated.#444
reltuk merged 2 commits intomainfrom
aaron/connectionauthenticated-callback

Conversation

@reltuk
Copy link

@reltuk reltuk commented Nov 21, 2025

This allows a server implementation to know the authenticated user without waiting for the first command interactions, such as ComQuery or ComInitDB.

…ed, which is called immediately after the connection is authenticated.

This allows a server implementation to know the authenticated user without waiting for the first command interactions, such as ComQuery or ComInitDB.
@reltuk reltuk requested a review from zachmu as a code owner November 21, 2025 19:00
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

// type cannot represent the value the conversion succeeds but the result value is implementation-dependent.
//
// And indeed, the test fails on arm64 but passes on amd64 because the computed conversion is different.
tcases[6].skip = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we compute this boolean above and assign it to the test struct literal in its initializer instead?

@reltuk reltuk merged commit 8039a98 into main Nov 24, 2025
4 checks passed
@Hydrocharged Hydrocharged deleted the aaron/connectionauthenticated-callback branch January 9, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants