Skip to content

Conversation

francesco995
Copy link
Contributor

During a recent upgrade of our aurora mysql clusters, we started seeing all db connections erroring with ** (MyXQL.Error) (1243) Unknown prepared statement handler (11) given to mysql_stmt_precheck, because an online cluster upgrade cancels all prepared statements. The systems did not recover from that error until manually restarted

Adding this to the enum list will allow us to configure disconnect_on_error_codes to invalidate the connection

This is similar to go-sql-driver/mysql#1555 (comment) for the go driver

@wojtekmach wojtekmach merged commit 0e46168 into elixir-ecto:master Jul 21, 2025
4 of 5 checks passed
@wojtekmach
Copy link
Member

Thank you!

@francesco995 francesco995 deleted the patch-1 branch July 21, 2025 11:01
@francesco995
Copy link
Contributor Author

hi @wojtekmach @josevalim thank you for the fast review

is there a release scheduled for this library?

@wojtekmach
Copy link
Member

We don’t have a set schedule, you can use the latest version as GitHub dependency in the meantime.

@wojtekmach
Copy link
Member

v0.8.0 is out, thank you again for the PR!

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.

3 participants