#33647: bulk_update silently truncating values for size limited fields
-------------------------------------+-------------------------------------
     Reporter:  jerch                |                    Owner:  Akash
                                     |  Kumar Sen
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  4.0
  (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 Akash Kumar Sen):

 Following this approach mentioned by Simon in
 [https://code.djangoproject.com/ticket/33647#comment:3 comment 3] would be
 reasonable I think.

 > That could be one approach yes, we'd likely need to adapt `CAST` to
 allow for such usage though. Not sure of what the argument should be named
 though, maybe `generic` which
 > defaults to `False`? Not sure what `generic=True` would mean in the case
 of `Cast(expr, ArrayField(CharField(max_length=20), generic=True)` would
 it be `::varchar[]` or `::array`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33647#comment:25>
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/0107018b3689a8f1-5745c42c-b4f8-48ee-878b-87e40af86979-000000%40eu-central-1.amazonses.com.

Reply via email to