#33647: bulk_update silently truncating values for size limited fields
-------------------------------------+-------------------------------------
Reporter: jerch | Owner: nobody
Type: Bug | Status: new
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 jerch):
Replying to [comment:4 Simon Charette]:
> An alternative approach might to commit to dropping the whole
`CASE`/`WHEN` wrapping altogether on backends that support it as described
in #29771.
>
> We know the underlying expression construction approach performs poorly
#31202 and the following form doesn't suffer for the type inference issue
we're experiencing here
>
> {{{#!sql
> UPDATE test_model SET name = v.name
> FROM (VALUES
> (1, ‘aaaaaaaaaa’),
> (2, ‘bbbbbbbbbb’)
> ) AS v(id, name)
> WHERE test_model.id = v.id
> }}}
Can you give me a pointer, how to get a discussion about that rolling? Or
who to contact? I already wrote about my implementation of that idea 3
months ago, no response from anyone. Then I put everything into a neat
package with extensive tests, no response (beside some 3rd person giving
really helpful feedback). I even wrote a mailing list request about it
yday to discuss some details - no response either (though its still pretty
fresh). I really dont know what else to do. Could it be that no one is
actually interested in a revamped bulk_update implementation in django? Or
is django development known to have a very slow pace / being in
maintenance mode mostly? I dont want to blame anyone - could all be me
pushing the wrong buttons, but I've never faced it to that degree in any
other OSS project.
--
Ticket URL: <https://code.djangoproject.com/ticket/33647#comment:6>
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/010701806216842b-52fc4daf-0133-4f94-8669-d62b9680ccf4-000000%40eu-central-1.amazonses.com.