mirror of
https://github.com/django/django.git
synced 2025-09-07 19:21:13 +00:00
Corrected PostgreSQL version comparisons from r10730. Thanks to rozwell for the report on IRC.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fe971ec66f
commit
4f9fd44965
2 changed files with 4 additions and 4 deletions
|
@ -121,7 +121,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
|||
cursor.execute("SET TIME ZONE %s", [settings_dict['TIME_ZONE']])
|
||||
if not hasattr(self, '_version'):
|
||||
self.__class__._version = get_version(cursor)
|
||||
if self._version[0:2] < [8, 0]:
|
||||
if self._version[0:2] < (8, 0):
|
||||
# No savepoint support for earlier version of PostgreSQL.
|
||||
self.features.uses_savepoints = False
|
||||
cursor.execute("SET client_encoding to 'UNICODE'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue