#25287: Multiplying and dividing connectors for datetime expressions are not
supported by sqlite backed.
-------------------------------------+-------------------------------------
     Reporter:  javrasya             |                    Owner:
                                     |  caioariede
         Type:  New feature          |                   Status:  assigned
    Component:  Database layer       |                  Version:  1.8
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  sqlite3,             |             Triage Stage:  Accepted
  combine_duration_expression, F     |
  expressions,                       |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by caioariede):

 It looks like there's an issue with the user-defined function used by the
 SQLite backend to make arithmetic calculations:

 
https://github.com/django/django/blob/master/django/db/backends/sqlite3/base.py#L416

 It only expects microseconds, timedeltas and datetime objects. In the
 given example, it also would need to expect an integer (the percent). This
 works with the PostgreSQL backend but not with the SQLite backend.

--
Ticket URL: <https://code.djangoproject.com/ticket/25287#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 post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.4d5c37e7145f848de96da7ac55db89b0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to