diff options
| author | Matt Boersma <matt@sprout.org> | 2007-08-21 17:06:06 +0000 |
|---|---|---|
| committer | Matt Boersma <matt@sprout.org> | 2007-08-21 17:06:06 +0000 |
| commit | 377fe7ce77f99a0b79431aa5417ba262f464f58b (patch) | |
| tree | 494308425b83efead84f485eebf875ffbab47b80 | |
| parent | a1e26b0105a7f6afc5d950556caf7f44ff35c9cf (diff) | |
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
| -rw-r--r-- | django/db/backends/oracle/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 37cfd85282..23ce30f37e 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" |
