Skip to content
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

Filter client capabilities that can't be met by server #174

Merged

Conversation

greg-rychlewski
Copy link
Member

Closes #173

Previously, during the initial handshake the library would error if the client and server capabilities didn't match. However, the MySQL spec says the client should simply remove the flags the server can't comply with: https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_connection_phase.html.

It seems this part of the code was reusing a function that tried to ensure all the appropriate auth capabilities were present: https://github.com/elixir-ecto/myxql/blob/master/lib/myxql/protocol.ex#L116.

The change here is to introduce a filtering function instead of using the "ensure everything allowed" function.

Copy link
Member

@wojtekmach wojtekmach left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, sorry for the hold up. :)

@greg-rychlewski greg-rychlewski merged commit 52047ad into elixir-ecto:master Feb 13, 2024
10 checks passed
@greg-rychlewski greg-rychlewski deleted the filter_incompatible_flags branch February 13, 2024 13:31
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.

Troubles connection to the MYSQL interface of Manticore Search
2 participants