Author: russellm
Date: 2009-02-17 17:33:30 -0600 (Tue, 17 Feb 2009)
New Revision: 9845

Modified:
   django/trunk/django/db/backends/postgresql/operations.py
Log:
Fixed #10289 -- Corrected typo that produced oversensitive rejection of 
Postgres versions. Thanks to Ian Kelly for the report.

Modified: django/trunk/django/db/backends/postgresql/operations.py
===================================================================
--- django/trunk/django/db/backends/postgresql/operations.py    2009-02-17 
10:17:29 UTC (rev 9844)
+++ django/trunk/django/db/backends/postgresql/operations.py    2009-02-17 
23:33:30 UTC (rev 9845)
@@ -158,5 +158,5 @@
         NotImplementedError if this is the database in use.
         """
         if aggregate.sql_function == 'STDDEV_POP' or aggregate.sql_function == 
'VAR_POP':
-            if self.postgres_version[0] == 8 and self.postgres_version[1] == 2 
and self.postgres_version[1] <= 4:
+            if self.postgres_version[0] == 8 and self.postgres_version[1] == 2 
and self.postgres_version[2] <= 4:
                 raise NotImplementedError('PostgreSQL 8.2 to 8.2.4 is known to 
have a faulty implementation of %s. Please upgrade your version of PostgreSQL.' 
% aggregate.sql_function)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to