Fixed -- Made QuerySet.bulk_create() use TO_NCLOB() for TextFields on Oracle.
@@ -55,9 +55,9 @@ class Oracle_datetime(datetime.datetime):
class BulkInsertMapper:
BLOB = 'TO_BLOB(%s)'
- CLOB = 'TO_CLOB(%s)'
DATE = 'TO_DATE(%s)'
INTERVAL = 'CAST(%s as INTERVAL DAY(9) TO SECOND(6))'
+ NCLOB = 'TO_NCLOB(%s)'
NUMBER = 'TO_NUMBER(%s)'
TIMESTAMP = 'TO_TIMESTAMP(%s)'
@@ -78,7 +78,7 @@ class BulkInsertMapper:
'PositiveSmallIntegerField': NUMBER,
'SmallAutoField': NUMBER,
'SmallIntegerField': NUMBER,
- 'TextField': CLOB,
+ 'TextField': NCLOB,
'TimeField': TIMESTAMP,
}
