#21643: QuerySets that use F() + timedelta() crash when compiling their query 
more
than once
-------------------------------------+-------------------------------------
     Reporter:  despawn@…            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.6
  (models, ORM)                      |               Resolution:  fixed
     Severity:  Normal               |             Triage Stage:  Ready for
     Keywords:                       |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by mrmachine):

 The test from the fix already applied also fails in 1.5, but the following
 test passes in 1.5 and fails in 1.6 showing that this is a regression.

 {{{
     def test_query_clone(self):
         # Ticket #21643
         qs = Experiment.objects.filter(end__lt=F('start') +
 datetime.timedelta(hours=1))
         qs2 = qs.all()
         list(qs)
         list(qs2)
 }}}

 Is it enough to back port the existing commit, or should this new test
 also be committed and back ported?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21643#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.e6c275604440a9db2fb8efdcfdcdf7b1%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to