Skip to content

Fix ConnectionState when exception#643

Closed
wenjunxiao wants to merge 1 commit into
apache:mainfrom
wenjunxiao:main
Closed

Fix ConnectionState when exception#643
wenjunxiao wants to merge 1 commit into
apache:mainfrom
wenjunxiao:main

Conversation

@wenjunxiao

Copy link
Copy Markdown

When an exception occurs while writing, the ConnectionState state will be inconsistent with the actual state on the connection, therefore, the state needs to be cleaned up on exception. Example code https://github.com/wenjunxiao/lab-tomcat-jdbc-autocommit

When an exception occurs while writing, the ConnectionState state will be inconsistent with the actual state on the connection, therefore, the state needs to be cleaned up on exception. Example code https://github.com/wenjunxiao/lab-tomcat-jdbc-autocommit
@aooohan aooohan self-assigned this Aug 2, 2023
@aooohan

aooohan commented Aug 3, 2023

Copy link
Copy Markdown
Member

Thanks for the PR. I have merged manually with adding a unit test and changelog entry.

@aooohan aooohan closed this Aug 3, 2023
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