Ticket #11580: 11580.patch

File 11580.patch, 979 bytes (added by PyKaB, 7 years ago)
  • django/db/backends/oracle/base.py

    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 b WHEN (new.%(col_name)s IS NULL) 
    275275        return int(cursor._insert_id_var.getvalue())
    276276
    277277    def field_cast_sql(self, db_type, internal_type):
    278         if db_type and db_type.endswith('LOB'):
    279             return "DBMS_LOB.SUBSTR(%s)"
    280         else:
    281             return "%s"
     278        return "%s"
    282279
    283280    def last_executed_query(self, cursor, sql, params):
    284281        # http://cx-oracle.sourceforge.net/html/cursor.html#Cursor.statement
Back to Top