diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-12-20 22:04:07 +0000 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-12-20 22:04:07 +0000 |
| commit | 07728a2c2c78b030b7de9c6b20ef028f82d6134a (patch) | |
| tree | 84896923e63a4ae396597deaa0b87254ac05e819 | |
| parent | 57554442fe3e209c135e15dda4ea45123e579e58 (diff) | |
Refs #2443 -- Fix Oracle tests for DurationField.
It helps if there are the correct number of microseconds in a second.
| -rw-r--r-- | django/db/backends/oracle/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index db64803c0a..9f275b785d 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -213,7 +213,7 @@ WHEN (new.%(col_name)s IS NULL) day_precision), [] def format_for_duration_arithmetic(self, sql): - return "NUMTODSINTERVAL(%s / 100000, 'SECOND')" % sql + return "NUMTODSINTERVAL(%s / 1000000, 'SECOND')" % sql def date_trunc_sql(self, lookup_type, field_name): # http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions230.htm#i1002084 |
