#32525: Class Cast throws DataError when column contains numeric string or 
alphabet
string in postgres
-------------------------------------+-------------------------------------
     Reporter:  kygoh                |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  3.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  QuerySet.extra       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by kygoh):

 * status:  closed => new
 * resolution:  wontfix =>


Comment:

 Replying to [comment:1 Mariusz Felisiak]:
 > Thanks for the ticket, however it's an issue in your data not in Django.
 Moreover, it's unexpected to prevent/ignore data errors.

 Unfortunately the {{{item_value}}} column by design allows numeric as well
 as non-numeric string data. My request is not to prevent/ignore data
 errors but to not deprecate {{{extra()}}} unless there's an alternative to
 handle such cases since Django documentation states:

 > This is an old API that we aim to deprecate at some point in the future

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32525#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/063.e1b9251902df42d87ca4b8d840478c20%40djangoproject.com.

Reply via email to