From 07728a2c2c78b030b7de9c6b20ef028f82d6134a Mon Sep 17 00:00:00 2001
From: Marc Tamlyn <marc.tamlyn@gmail.com>
Date: Sat, 20 Dec 2014 22:04:07 +0000
Subject: [PATCH] Refs #2443 -- Fix Oracle tests for DurationField.

It helps if there are the correct number of microseconds in a second.
---
 django/db/backends/oracle/base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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