From 377fe7ce77f99a0b79431aa5417ba262f464f58b Mon Sep 17 00:00:00 2001 From: Matt Boersma Date: Tue, 21 Aug 2007 17:06:06 +0000 Subject: [PATCH] Fixed breakage of test suite for Oracle by adding a null check. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5992 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 37cfd85282c..23ce30f37eb 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -70,7 +70,7 @@ class DatabaseOperations(BaseDatabaseOperations): return "DROP SEQUENCE %s;" % self.quote_name(get_sequence_name(table)) def field_cast_sql(self, db_type): - if db_type.endswith('LOB'): + if db_type and db_type.endswith('LOB'): return "DBMS_LOB.SUBSTR(%s)" else: return "%s"