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
This commit is contained in:
Matt Boersma 2007-08-21 17:06:06 +00:00
parent a1e26b0105
commit 377fe7ce77
1 changed files with 1 additions and 1 deletions

View File

@ -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"