#10702: .extra() should accept "having" parameter
-------------------------------------+-------------------------------------
     Reporter:  carljm               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Design
     Keywords:                       |  decision needed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by anonymous):

 3 years and this still isn't fixed?

 So people on mysql can use extra to specify extra params, but the only way
 to do filtering on those is via the HAVING clause, as the WHERE clause
 isn't aware of those params.

 So if comment #1 is correct, and this was rejected for some ridiculous
 reason, then it almost looks like explicitly targeting mysql users, as
 other db users can use the standard extra(where=...) to handle filtering,
 but mysql users are denied access to HAVING because of one asshole with a
 head full of bad decisions, who probably didn't even understand the
 ramifications of his actions.

 So for mysql users, there is NO WAY TO FILTER USING THE PARAMS DEFINED IN
 EXTRA. Is this more or less correct? And no one has any intention of
 fixing it?

 Isn't that precious!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/10702#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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to