From ac8850973399fa15777a9eaacd63b0fd89f598bb Mon Sep 17 00:00:00 2001
From: idle sign <idlesign@yandex.ru>
Date: Thu, 29 Apr 2010 13:17:00 +0700
Subject: [PATCH] Fixed #13414 - incorrect SQL for __year lookup example
---
docs/ref/models/querysets.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 2855794..137f370 100644
a
|
b
|
Example::
|
1515 | 1515 | |
1516 | 1516 | SQL equivalent:: |
1517 | 1517 | |
1518 | | SELECT ... WHERE EXTRACT('year' FROM pub_date) = '2005'; |
| 1518 | SELECT ... WHERE pub_date BETWEEN '2005-01-01' AND '2005-12-31 23:59:59.999999'; |
1519 | 1519 | |
1520 | 1520 | (The exact SQL syntax varies for each database engine.) |
1521 | 1521 | |