#33257: Case() and ExpressionWrapper() doesn't work with DecimalField on SQLite.
-------------------------------------+-------------------------------------
     Reporter:  Matthijs Kooijman    |                    Owner:  Matthijs
                                     |  Kooijman
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak):

 > Any suggestions on where the testcases for this should live?

  - `Case` -> `tests/expressions_case`,
 - `ExpressionWrapper` -> `tests/expressions`

 > I also had a look through expressions.py, and it seems that most
 expressions already have SQLiteNumericMixin, except:

 I agree with you analysis: `When`, `WindowFrame`, and `OrderBy` don't need
 it. I'm not sure about `Subquery`, you can try to break it, but as far as
 I'm aware it returns a single column/expression so casting to a numeric
 value should be already handled there.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33257#comment:4>
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/074.b95e6ff61428bf2d12cac6518c0490e9%40djangoproject.com.

Reply via email to