Author: lukeplant
Date: 2010-09-07 15:43:19 -0500 (Tue, 07 Sep 2010)
New Revision: 13692

Modified:
   django/trunk/docs/ref/models/querysets.txt
Log:
Fixed #13414 - QuerySet API ref wrong sql equivalent in __year lookup example

Thanks to idle for report and patch



Modified: django/trunk/docs/ref/models/querysets.txt
===================================================================
--- django/trunk/docs/ref/models/querysets.txt  2010-09-07 20:33:58 UTC (rev 
13691)
+++ django/trunk/docs/ref/models/querysets.txt  2010-09-07 20:43:19 UTC (rev 
13692)
@@ -1556,7 +1556,7 @@
 
 SQL equivalent::
 
-    SELECT ... WHERE EXTRACT('year' FROM pub_date) = '2005';
+    SELECT ... WHERE pub_date BETWEEN '2005-01-01' AND '2005-12-31 
23:59:59.999999';
 
 (The exact SQL syntax varies for each database engine.)
 

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