Sfoglia il codice sorgente

HUE-7192 [desktop] Hue Search is failing with DatabaseError
field_cast_sql deprecated after Django 1.8

Ying Chen 8 anni fa
parent
commit
1c52eb2

+ 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, 4000)"
+            return "DBMS_LOB.SUBSTR(%s, 1000000)"
         else:
             return "%s"