From 74e29250427c7e6f901ffdbb721f69516ba2f3f0 Mon Sep 17 00:00:00 2001 From: Boulder Sprinters Date: Wed, 16 May 2007 21:48:07 +0000 Subject: [PATCH] boulder-oracle-sprint: Fixed oracle get_datetime_cast_sql for microsecond precision. git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@5266 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- 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 c5da7ac25c..d2957ccd7a 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -145,7 +145,7 @@ def get_date_trunc_sql(lookup_type, field_name): return sql def get_datetime_cast_sql(): - return "TO_TIMESTAMP(%s, 'YYYY-MM-DD HH24:MI:SS')" + return "TO_TIMESTAMP(%s, 'YYYY-MM-DD HH24:MI:SS.FF')" def get_limit_offset_sql(limit, offset=None): # Limits and offset are too complicated to be handled here.