mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +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:
		| @@ -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" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user