#34125: Limiting QuerySet crashes on union() with a single non-empty query
-------------------------------------+-------------------------------------
     Reporter:  Stefan Hammer        |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Simon Charette (added)
 * severity:  Normal => Release blocker
 * stage:  Unreviewed => Accepted


Comment:

 Thanks for the report! I attached a regression test which generates the
 following SQL on PostgreSQL:
 {{{#!sql
   (SELECT "queries_number"."id",
           "queries_number"."num",
           "queries_number"."other_num",
           "queries_number"."another_num"
    FROM "queries_number"
    WHERE "queries_number"."num" <= 0
    LIMIT 1)
 LIMIT 1;
 }}}



 Regression in 3d734c09ff0138441dfe0a59010435871d17950f.
 Reproduced at de2c2127b66e77a034c01c81753c5c08e651a5b4.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34125#comment:3>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701841cb2ef66-961e4611-ea7a-4cb8-a9eb-f4cf011fae09-000000%40eu-central-1.amazonses.com.

Reply via email to