Refs #2443 -- Fix Oracle tests for DurationField.

It helps if there are the correct number of microseconds in a second.
This commit is contained in:
Marc Tamlyn 2014-12-20 22:04:07 +00:00
parent 57554442fe
commit 07728a2c2c
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ WHEN (new.%(col_name)s IS NULL)
day_precision), [] day_precision), []
def format_for_duration_arithmetic(self, sql): 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): def date_trunc_sql(self, lookup_type, field_name):
# http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions230.htm#i1002084 # http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions230.htm#i1002084