architect icon indicating copy to clipboard operation
architect copied to clipboard

Not caching the creation of a cursor

Open jandebleser opened this issue 6 years ago • 2 comments

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.

jandebleser avatar Mar 19 '18 16:03 jandebleser

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)

maxtepkeev avatar Mar 22 '18 12:03 maxtepkeev

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

jandebleser avatar Mar 23 '18 11:03 jandebleser