Closed mirromutth closed 8 months ago
I re-implement it with COM_RESET_CONNECTION
, which will reset all state, not just rollback transaction. That should make more sense.
Looks like MySQL 5.6.x and below does not support COM_RESET_CONNECTION
.
Then I found that the reset status of COM_RESET_CONNECTION
seemed a bit unexpected. It will clean up all prepared statements (server-preparing), which will leave our PrepareCache
in an error state.
So I reset the commit, sorry for that.
Motivation:
Implement
Lifecycle
forMySqlConnection
. See also #64Modification:
The
MySqlConnection
.Result:
The
MySqlConnection
implementsLifecycle
and will rollback inpreRelease
.