#19527: Allow QuerySet.bulk_create() to set the primary key of its objects
-------------------------------------+-------------------------------------
     Reporter:  Tuttle               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  oracle               |             Triage Stage:  Accepted
  QuerySet.bulk_create               |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by timgraham):

 The `chain.from_iterable()` addition broke Oracle:
 {{{
   File "/home/tim/code/django/django/db/models/sql/compiler.py", line
 1038, in as_sql
     return [(" ".join(result), tuple(chain.from_iterable(params)))]
 TypeError: 'Oracle_datetime' object is not iterable
 }}}
 `params` is something like: `['admin', u'0001_initial',
 Oracle_datetime(2016, 3, 4, 12, 1, 9, 38631),
 <django.db.backends.oracle.utils.InsertIdVar object at 0x7fb0343a9710>]`.

--
Ticket URL: <https://code.djangoproject.com/ticket/19527#comment:39>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.4a843c0c4e2a5aa57bbc0e1d2af31391%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to