#31839: Add additional database functions.
-------------------------------------+-------------------------------------
Reporter: Nick Pope | Owner: Nick Pope
Type: New feature | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: functions, random, | Triage Stage:
truncate, log2, log10, bit | Unreviewed
length, octet length, hyperbolic |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by felixxm):
I'm not sure if it's worth adding extra database functions:
- `Log2` and `Log10` can be achieved with proving base to `Log` so I'm
against them,
- hyperbolic functions are supported only on PostgreSQL 12+, we need to
emulate them on other DBs, it's not worth, IMO,
- `BitLength` and `OctetLength` will probably not work on Oracle.
`Truncate` and `Round` sound reasonable.
--
Ticket URL: <https://code.djangoproject.com/ticket/31839#comment:2>
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/065.39d168e717c28f54578cf860320f1869%40djangoproject.com.