Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit f824ecc363b9b83b0c98fd1b3f9704021894a1fb 1 parent 9e97fdf
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/db/backends/postgresql_psycopg2/base.py
View
1  django/db/backends/postgresql_psycopg2/base.py
@@ -97,6 +97,7 @@ def _cursor(self):
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
Please sign in to comment.
Something went wrong with that request. Please try again.