#12452: Not all database connections are being closed (multidb) ------------------------------------------+--------------------------------- Reporter: sam...@lefora.com | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 0 | ------------------------------------------+--------------------------------- Now with multidb there can be multiple connections to different databases. Only the default one is being closed at the end of the request. I think that it should be consistent, and all databases connections should be closed. Sorry for not having a patch handy, but the fix would be (untested):
In django/db/__init__.py change close_connection to: {{{ def close_connection(**kwargs): for connection in connections.all(): connection.close() }}} -- Ticket URL: <http://code.djangoproject.com/ticket/12452> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.