summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-05-16 21:48:07 +0000
committerBoulder Sprinters <boulder-sprinters@djangoproject.com>2007-05-16 21:48:07 +0000
commit74e29250427c7e6f901ffdbb721f69516ba2f3f0 (patch)
treebb1be21b77c8052da924a04a73550e55a925aaf0
parentd541f7a642dc1839fd4dd2e5119b64923e9692d1 (diff)
downloaddjango-74e29250427c7e6f901ffdbb721f69516ba2f3f0.tar.gz
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
-rw-r--r--django/db/backends/oracle/base.py2
1 files changed, 1 insertions, 1 deletions
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.