#32722: Comparing to TruncTime() doesn't work on Oracle.
-------------------------------------+-------------------------------------
               Reporter:  Mariusz    |          Owner:  Mariusz Felisiak
  Felisiak                           |
                   Type:  Bug        |         Status:  assigned
              Component:  Database   |        Version:  3.2
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:  oracle ttrunctime
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Comparing to `TruncTime()` doesn't work on Oracle because we don't change
 the date part to `1900-01-01` (which is set for `TimeFields`), e.g.
 {{{
 .filter(start_datetime__time=start_datetime.time())
 }}}
 is translated to
 {{{
 "DB_FUNCTIONS_DTMODEL"."START_DATETIME" = 1900-01-01 14:30:26.000321
 }}}
 which cannot work because `start_datetime == datetime(2015, 6, 15, 14, 30,
 26, 321)`.

 Noticed when checking #32699.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32722>
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/050.70eac7e9414fce853f246e8e439bc13f%40djangoproject.com.

Reply via email to