#36818: AttributeError: 'NoneType' object has no attribute 'getlimit' when 
calling
bulk_create as the first database operation on SQLite
-------------------------------------+-------------------------------------
     Reporter:  guro_ishiguro        |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  6.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  sqlite bulk_create   |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Youngkwang Yang):

 I confirmed the issue with the following regression test:

 {{{#!python

   def test_max_query_params_without_established_connection(self):
       new_connection = connection.copy()
       new_connection.settings_dict =
 copy.deepcopy(connection.settings_dict)
       # Check if connection is not yet established
       self.assertIsNone(new_connection.connection)
       try:
           result = new_connection.features.max_query_params
           self.assertIsInstance(result, int)
       finally:
           new_connection.close()
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36818#comment:3>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019b462cae09-5d9711d3-02e8-4948-bc66-02169f40941b-000000%40eu-central-1.amazonses.com.

Reply via email to