﻿From ef3743f758023e836da0040b7956b9770b73a3f0 Mon Sep 17 00:00:00 2001
From: Alexei Vlasov <avlasov@loyalty-partners.ru>
Date: Fri, 8 Nov 2013 11:48:19 +0400
Subject: [PATCH] Fix issue #11580

---
 django/db/backends/oracle/base.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index 6a6a877..d6bd2de 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -275,10 +275,7 @@ WHEN (new.%(col_name)s IS NULL)
         return int(cursor._insert_id_var.getvalue())
 
     def field_cast_sql(self, db_type, internal_type):
-        if db_type and db_type.endswith('LOB'):
-            return "DBMS_LOB.SUBSTR(%s)"
-        else:
-            return "%s"
+        return "%s"
 
     def last_executed_query(self, cursor, sql, params):
         # http://cx-oracle.sourceforge.net/html/cursor.html#Cursor.statement
-- 
1.8.3.2
