Changeset 4452
- Timestamp:
- 01/30/07 13:04:57 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/0.90-bugfixes/django/core/db/backends/postgresql.py
r4418 r4452 48 48 49 49 def cursor(self): 50 from django.conf.settings import DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, TIME_ZONE50 from django.conf.settings import DATABASE_USER, DATABASE_NAME, DATABASE_HOST, DATABASE_PORT, DATABASE_PASSWORD, DEBUG, DEFAULT_CHARSET, TIME_ZONE 51 51 if self.connection is None: 52 52 if DATABASE_NAME == '': … … 66 66 cursor = self.connection.cursor() 67 67 cursor.execute("SET TIME ZONE %s", [TIME_ZONE]) 68 cursor = UnicodeCursorWrapper(cursor, settings.DEFAULT_CHARSET)68 cursor = UnicodeCursorWrapper(cursor, DEFAULT_CHARSET) 69 69 if DEBUG: 70 70 return base.CursorDebugWrapper(cursor, self)
