Changes between Initial Version and Version 2 of Ticket #32152
- Timestamp:
- Oct 27, 2020, 12:40:49 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32152 – Description
initial v2 2 2 3 3 Example query: 4 {{{ 4 {{{#!python 5 5 Book.objects.all().annotate( 6 6 pub_year=TruncYear('pubdate') … … 17 17 Generated SQL on 3.0.6: 18 18 19 {{{ 19 {{{#!sql 20 20 SELECT 21 21 django_date_trunc('year', "aggregation_regress_book"."pubdate") AS "pub_year", … … 36 36 Generated SQL on current master: 37 37 38 {{{ 38 {{{#!sql 39 39 SELECT 40 40 django_date_trunc('year', "aggregation_regress_book"."pubdate", NULL, NULL) AS "pub_year", … … 90 90 The resulting query on master: 91 91 92 {{{ 92 {{{#!sql 93 93 SELECT 94 94 django_date_trunc('year', "aggregation_regress_book"."pubdate", NULL, NULL) AS "pub_year",