-
Notifications
You must be signed in to change notification settings - Fork 59
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
MySQL, error in my_thread_global_end #79
Comments
I saw this logs, my best guess is that problem somewhere in mysql odbc library. Code in your example is not equivalent, since async context managers also explicitly close cursor and connections in connection pool, when in your case connection and cursor destroyed with gc or exit of interpreter. |
Same code used for postgresql and sqlite without any issue. |
Found related MySQL issue https://bugs.mysql.com/bug.php?id=64466 , |
likely to... |
Can confirm opening connection in one thread and closing it in other is root cause, not sure what I can do about this, since it is more ODBC MySQL driver issue, other dbs work as expected. Possible solution is custom implementation of |
Probably this should not be an issue for [1] https://dev.mysql.com/doc/refman/5.7/en/mysql-thread-end.html |
Hi! I have some problem.
I use on linux system:
For any query I get an error message, not exception:
Query is executed correctly, only error message on console.
Code is very simple, from example, with pool and without pool:
Same code with just pyodbc runs without error message:
MySQL settings is default. Why can this error message?
The text was updated successfully, but these errors were encountered: