Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #13414 - QuerySet API ref wrong sql equivalent in __year lookup…

… example

Thanks to idle for report and patch



git-svn-id: http://code.djangoproject.com/svn/django/trunk@13692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2422fbfc934c2fb3399c0e66c6633eaaa4d36c76 1 parent 0b37d56
Luke Plant authored September 07, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/models/querysets.txt
2  docs/ref/models/querysets.txt
@@ -1556,7 +1556,7 @@ Example::
1556 1556
 
1557 1557
 SQL equivalent::
1558 1558
 
1559  
-    SELECT ... WHERE EXTRACT('year' FROM pub_date) = '2005';
  1559
+    SELECT ... WHERE pub_date BETWEEN '2005-01-01' AND '2005-12-31 23:59:59.999999';
1560 1560
 
1561 1561
 (The exact SQL syntax varies for each database engine.)
1562 1562
 

0 notes on commit 2422fbf

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