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

Not caching the creation of a cursor #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jandebleser
Copy link

This gives problems if you have more than 1 connection in your DATABASES variable in settings.py.
The cursor will be closed and give a "cursor already closed" error.

This gives problems if you have more than 1 connection in your DATABASES variable in settings.py.
The cursor will be closed and give a "cursor already closed" error.
@maxtepkeev maxtepkeev self-assigned this Mar 22, 2018
@maxtepkeev
Copy link
Owner

Hi @jandebleser

I didn't know this problem exists, thanks for raising this issue and thanks for the PR.

Unfortunately tests don't pass, have a look at travis for details (don't look at Python 2.6 failures, they aren't connected with your PR)

@jandebleser
Copy link
Author

I fixed the tests and I think it looks ok now.

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