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
This commit is contained in:
Russell Keith-Magee 2009-05-10 06:23:29 +00:00
parent 9e97fdf357
commit f824ecc363
1 changed files with 1 additions and 0 deletions

View File

@ -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