Author: mtredinnick
Date: 2008-07-12 06:01:57 -0500 (Sat, 12 Jul 2008)
New Revision: 7901

Modified:
   django/trunk/django/db/models/sql/query.py
Log:
Fixed a bozo bug from [7885]. Fixed #7698.


Modified: django/trunk/django/db/models/sql/query.py
===================================================================
--- django/trunk/django/db/models/sql/query.py  2008-07-12 06:16:42 UTC (rev 
7900)
+++ django/trunk/django/db/models/sql/query.py  2008-07-12 11:01:57 UTC (rev 
7901)
@@ -286,7 +286,7 @@
         if with_limits:
             if self.high_mark is not None:
                 result.append('LIMIT %d' % (self.high_mark - self.low_mark))
-            if self.low_mark is not None:
+            if self.low_mark:
                 if self.high_mark is None:
                     val = self.connection.ops.no_limit_value()
                     if val:


--~--~---------~--~----~------------~-------~--~----~
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