diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-11 11:56:46 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-11 11:56:46 +0000 |
| commit | 756d6f3a241fdc3fbe5fd20d5c62c8a709e25927 (patch) | |
| tree | 5af2fdfb96ed69c64a6d9ce01ff5577633efbf4f | |
| parent | 772f68c20e8de89a6b029a0ff498f6120912af07 (diff) | |
More fixes to PostgreSQL version comparisons from r10730.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/backends/postgresql_psycopg2/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/postgresql_psycopg2/base.py b/django/db/backends/postgresql_psycopg2/base.py index 600e864d23..d4ad3da646 100644 --- a/django/db/backends/postgresql_psycopg2/base.py +++ b/django/db/backends/postgresql_psycopg2/base.py @@ -105,11 +105,11 @@ 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 if self.features.uses_autocommit: - if self._version[0:2] < [8, 2]: + if self._version[0:2] < (8, 2): # FIXME: Needs extra code to do reliable model insert # handling, so we forbid it for now. from django.core.exceptions import ImproperlyConfigured |
