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:
parent
a1e26b0105
commit
377fe7ce77
|
@ -70,7 +70,7 @@ class DatabaseOperations(BaseDatabaseOperations):
|
||||||
return "DROP SEQUENCE %s;" % self.quote_name(get_sequence_name(table))
|
return "DROP SEQUENCE %s;" % self.quote_name(get_sequence_name(table))
|
||||||
|
|
||||||
def field_cast_sql(self, db_type):
|
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)"
|
return "DBMS_LOB.SUBSTR(%s)"
|
||||||
else:
|
else:
|
||||||
return "%s"
|
return "%s"
|
||||||
|
|
Loading…
Reference in New Issue