#17788: bulk_create() "too many SQL variables" error -------------------------------------+------------------------------------- Reporter: alpar | Owner: nobody Type: Bug | Status: new Component: Database layer | Version: (models, ORM) | 1.4-beta-1 Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by aaugustin): For the record here's the diff I used: {{{ Index: tests/regressiontests/test_17788/__init__.py =================================================================== Index: tests/regressiontests/test_17788/tests.py =================================================================== --- tests/regressiontests/test_17788/tests.py (revision 0) +++ tests/regressiontests/test_17788/tests.py (revision 0) @@ -0,0 +1,8 @@ +from django.test import TestCase + +from .models import SomeModel + +class SomeTest(TestCase): + + def test_bulk_insert(self): + SomeModel.objects.bulk_create(SomeModel(f='abc') for i in range(0, 10000)) Index: tests/regressiontests/test_17788/models.py =================================================================== --- tests/regressiontests/test_17788/models.py (revision 0) +++ tests/regressiontests/test_17788/models.py (revision 0) @@ -0,0 +1,4 @@ +from django.db import models + +class SomeModel(models.Model): + f = models.CharField(max_length=100) }}} This test passes under Oracle. -- Ticket URL: <https://code.djangoproject.com/ticket/17788#comment:11> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.