Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Fix pool not working bugs and autocommit #25

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

Conversation

kid143
Copy link

@kid143 kid143 commented Dec 25, 2014

The original implementation do not get new connection from the pool so it is actually not working.
and when creating test db, there's always a 'CREATE DATABASE' in a transaction block error due to
the lack of reimplementation of _set_autocommitmethod for the proxied connection.

I tried to fix these two bugs and it is now working in Django 1.7, I think it should also work for older
version.

1. fix pool not working.
2. fix autocommit setting not working in SQLAlchemy proxied connection.
@javier-sujar
Copy link

Hi!, i have the same problems with the autocommit transaction. Is there any location to install this app with this bug already fixed up with pip?

Thanks!

@bufke
Copy link

bufke commented Sep 23, 2015

I made a temporary fork on pypi with this patch for easier installation. Note I am not the author of this patch and have not thoroughly tested the fork.

https://pypi.python.org/pypi/django-postgrespool-lab

@bufke
Copy link

bufke commented Sep 29, 2015

Also I don't think this actually fixes the autocommit issue. I still see it with this patch applied.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants