#31839: Add additional database functions.
-------------------------------------+-------------------------------------
     Reporter:  Nick Pope            |                    Owner:  Nick Pope
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     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):

 `Random()` is already there (as an expression) so we can change it to a
 function and promote in docs, I'm just not sure why we change its
 behavior.

 `Truncate()` can be confused with `Trunc()` for dates/datetimes, and we
 can achieve the same by using `Cast(..., models.IntegerField())` so I
 don't think it's necessary.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31839#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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.6d31b611c841f9d9aa76b09c7d4aad5f%40djangoproject.com.

Reply via email to