#24629: Allow Func Expressions to be used as Transforms
-------------------------------------+-------------------------------------
Reporter: jarshwah | Owner: jarshwah
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: master
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I can't seem to find a ticket mentioning this, though we have discussed it
before. Please close if you can find a related ticket.
Func Expressions and Transforms are extremely similar in API, but not
enough to be interchangeable. Transforms are 1-arity (usually -
postgres.array.IndexTransform is a notable exception) Functions with
special behaviour.
Instead of implementing a Length Func and a Length Transform, we should be
able to implement a Length Func and register that same class as a
Transform. That's not currently possible because of the slight differences
in API and behaviour. We should resolve this ASAP.
--
Ticket URL: <https://code.djangoproject.com/ticket/24629>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.c504db4d4b913a043bbe05f039b412e3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.