Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More fixes to PostgreSQL version comparisons from r10730.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 756d6f3a241fdc3fbe5fd20d5c62c8a709e25927 1 parent 772f68c
Russell Keith-Magee authored May 11, 2009
4  django/db/backends/postgresql_psycopg2/base.py
@@ -105,11 +105,11 @@ def _cursor(self):
105 105
             cursor.execute("SET TIME ZONE %s", [settings_dict['TIME_ZONE']])
106 106
             if not hasattr(self, '_version'):
107 107
                 self.__class__._version = get_version(cursor)
108  
-            if self._version[0:2] < [8, 0]:
  108
+            if self._version[0:2] < (8, 0):
109 109
                 # No savepoint support for earlier version of PostgreSQL.
110 110
                 self.features.uses_savepoints = False
111 111
             if self.features.uses_autocommit:
112  
-                if self._version[0:2] < [8, 2]:
  112
+                if self._version[0:2] < (8, 2):
113 113
                     # FIXME: Needs extra code to do reliable model insert
114 114
                     # handling, so we forbid it for now.
115 115
                     from django.core.exceptions import ImproperlyConfigured

0 notes on commit 756d6f3

Please sign in to comment.
Something went wrong with that request. Please try again.