Browse Source

HUE-7305 [desktop] Revert "HUE-7192 [desktop] Hue Search is failing with DatabaseError"

This reverts commit 1c52eb264845e871c7b61526b5fc23a3431d3a74.
Was causing https://issues.cloudera.org/browse/HUE-7305
Romain Rigaux 8 years ago
parent
commit
25310ee

+ 1 - 1
desktop/core/ext-py/Django-1.6.10/django/db/backends/oracle/base.py

@@ -273,7 +273,7 @@ WHEN (new.%(col_name)s IS NULL)
 
     def field_cast_sql(self, db_type, internal_type):
         if db_type and db_type.endswith('LOB'):
-            return "DBMS_LOB.SUBSTR(%s, 1000000)"
+            return "DBMS_LOB.SUBSTR(%s, 4000)"
         else:
             return "%s"