Ticket #13414: patch.diff

File patch.diff, 768 bytes (added by idle sign, 15 years ago)

document patch (Git-format)

  • docs/ref/models/querysets.txt

    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::  
    15151515
    15161516SQL equivalent::
    15171517
    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';
    15191519
    15201520(The exact SQL syntax varies for each database engine.)
    15211521
Back to Top