Переглянути джерело

[beeswax] Fix querying history with oracle backend

krish 11 роки тому
батько
коміт
48251195de

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