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

Allow to disable the "overwriting not closed connection" warning #232

Open
amochin opened this issue Jan 2, 2025 · 0 comments
Open

Allow to disable the "overwriting not closed connection" warning #232

amochin opened this issue Jan 2, 2025 · 0 comments
Milestone

Comments

@amochin
Copy link
Collaborator

amochin commented Jan 2, 2025

Currently, the library throws a warning, if the Connect to database keyword was called without closing the connection via the Disconnect from database keyword. This might be sometimes unwanted - e.g. when the connection has to be opened before each request and the overwriting is accepted.

One of the cases is when pymysql drops a connection after some timeout and throws an InterfaceError: (0, '') - in this case a new connection is needed each time and running a pair of "disconnect" + "connect" doesn't seem to be the most graceful solution.

@amochin amochin added this to the next_version milestone Jan 2, 2025
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

No branches or pull requests

1 participant