diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-10 09:22:06 +0000 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-05-10 09:22:06 +0000 |
commit | b97178f7ec311da7c885a122a2ccc1036bacf0d3 (patch) | |
tree | 4ee3f4409bec165fe2de50b6e580f9c5610f137b /django/db/backends/postgresql/base.py | |
parent | 5663258de13975e28406233328a9e51c8bc1b768 (diff) | |
download | django-b97178f7ec311da7c885a122a2ccc1036bacf0d3.tar.gz |
Fixed #10842 -- Corrected parsing of version numbers for PostgreSQL 8.4beta series. Thanks to hgdeoro for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/postgresql/base.py')
-rw-r--r-- | django/db/backends/postgresql/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index afb7432c84..f0a117f570 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -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 < (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'") |