From f824ecc363b9b83b0c98fd1b3f9704021894a1fb Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sun, 10 May 2009 06:23:29 +0000 Subject: [PATCH] Fixed #10958 -- Corrected the setting of PostgreSQL isolation level. Thanks to kmishler for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10728 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/postgresql_psycopg2/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py index 4d6a1e2f5d..e1a5d830e2 100644 --- a/django/db/backends/postgresql_psycopg2/base.py +++ b/django/db/backends/postgresql_psycopg2/base.py @@ -97,6 +97,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): conn_params['port'] = settings_dict['DATABASE_PORT'] self.connection = Database.connect(**conn_params) self.connection.set_client_encoding('UTF8') + self.connection.set_isolation_level(self.isolation_level) connection_created.send(sender=self.__class__) cursor = self.connection.cursor() cursor.tzinfo_factory = None