-
Notifications
You must be signed in to change notification settings - Fork 4
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
When error occurs, Print very long sql may obstruct debugging #13
Comments
About the mysql related error, FYI https://stackoverflow.com/questions/1884859/lost-connection-to-mysql-server-during-query
|
Sounds good to me. Mind submitting a PR? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just encountered with a mysql related error, and find error printing in base.py may obstruct debugging when the sql is very long, so I change it like this:
I tried to insert 100 records in one batch, the sql it very long, in this case about 5M, to solve the problem, I have to reduce the amount the records in a batch, this is a mysql related issue, maybe not due to pymedoo.
The error I got is as below, print the whole sql is terrible, so I modify
base.py
to print the slim version:The text was updated successfully, but these errors were encountered: