Opened 7 years ago

Closed 7 years ago

#28934 closed Bug (fixed)

Cast with DateTimeField truncates microseconds on Oracle.

Reported by: Mariusz Felisiak Owned by: Mariusz Felisiak
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: oracle cast datetime microsecond
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Cast with DateTimeField truncates microseconds on Oracle.

Change History (3)

comment:1 by Tim Graham, 7 years ago

Has patch: set
Patch needs improvement: set
Triage Stage: UnreviewedAccepted

The PR has test failures.

comment:2 by Mariusz Felisiak, 7 years ago

Tests failures on SQLite and Oracle are not related with this PR. It's waiting for two fixes, i.e.:

  • PR9468 for model_fields.test_decimalfield.DecimalFieldTests.test_roundtrip_with_trailing_zeros on Oracle, and
  • PR9460 for db_functions.test_cast.CastTests.test_cast_from_python_to_datetime on SQLite.

comment:3 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: assignedclosed

In fc9eec7b:

Fixed #28934 -- Prevented Cast from truncating microseconds on Oracle.

Note: See TracTickets for help on using tickets.
Back to Top