#13844: Errors when using character fields for aggregation
-------------------------------------+-------------------------------------
     Reporter:  zegrep@…             |                    Owner:  wogan
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.2
  (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
-------------------------------------+-------------------------------------
Changes (by Anssi Kääriäinen <akaariai@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [59a655988ee95e4b4e4646cebea88b620d8fcdd2]:
 {{{
 #!CommitTicketReference repository=""
 revision="59a655988ee95e4b4e4646cebea88b620d8fcdd2"
 Fixed #13844 -- Avoid converting unknown db values to float

 This patch removes an unconditional float(value) conversion from db
 backend default convert_values() method. This can cause problems when
 aggregating over character fields for example. In addition, Oracle
 and SQLite already return the bare value from their convert_values().

 In the long term the converting should be done by fields, and the
 fields should then call database backend specific converters when
 needed. The current setup is inflexible for 3rd party fields.

 Thanks to Merlijn van Deen for the original patch.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/13844#comment:13>
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