mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue