Fixed #33339 -- Made QuerySet.bulk_create() use TO_NCLOB() for TextFields on Oracle.
This commit is contained in:
parent
97e9a84d27
commit
9c1fe446b6
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue