Author: ubernostrum
Date: 2007-01-30 13:04:57 -0600 (Tue, 30 Jan 2007)
New Revision: 4452
Modified:
django/branches/0.90-bugfixes/django/core/db/backends/postgresql.py
Log:
0.90-bugfixes: fix for backport in [4418]
Modified: django/branches/0.90-bugfixes/django/core/db/backends/postgresql.py
===================================================================
--- django/branches/0.90-bugfixes/django/core/db/backends/postgresql.py
2007-01-29 16:48:31 UTC (rev 4451)
+++ django/branches/0.90-bugfixes/django/core/db/backends/postgresql.py
2007-01-30 19:04:57 UTC (rev 4452)
@@ -47,7 +47,7 @@
self.queries = []
def cursor(self):
- from django.conf.settings import DATABASE_USER, DATABASE_NAME,
DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, TIME_ZONE
+ from django.conf.settings import DATABASE_USER, DATABASE_NAME,
DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, DEFAULT_CHARSET,
TIME_ZONE
if self.connection is None:
if DATABASE_NAME == '':
from django.core.exceptions import ImproperlyConfigured
@@ -65,7 +65,7 @@
self.connection.set_isolation_level(1) # make transactions
transparent to all cursors
cursor = self.connection.cursor()
cursor.execute("SET TIME ZONE %s", [TIME_ZONE])
- cursor = UnicodeCursorWrapper(cursor, settings.DEFAULT_CHARSET)
+ cursor = UnicodeCursorWrapper(cursor, DEFAULT_CHARSET)
if DEBUG:
return base.CursorDebugWrapper(cursor, self)
return cursor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---