#23909: RunSQL calls execute with params None, params used in map
-------------------------------------+-------------------------------------
     Reporter:  yarbelk              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.7
  (models, ORM)                      |               Resolution:
     Severity:  Release blocker      |             Triage Stage:  Accepted
     Keywords:  migrations           |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by claudep):

 To reproduce the error in current tests:
 {{{
 diff --git a/tests/migrations/test_operations.py
 b/tests/migrations/test_operations.py
 index 32f70e8..08a5600 100644
 --- a/tests/migrations/test_operations.py
 +++ b/tests/migrations/test_operations.py
 @@ -1292,7 +1292,7 @@ class OperationTests(OperationTestBase):
          # Make sure there's no table
          self.assertTableNotExists("i_love_ponies")
          # Test the database alteration
 -        with connection.schema_editor() as editor:
 +        with connection.schema_editor(collect_sql=True) as editor:
              operation.database_forwards("test_runsql", editor,
 project_state, new_state)
          self.assertTableExists("i_love_ponies")
          # Make sure all the SQL was processed
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23909#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 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/065.c90be868d1b65bab7d7f116da4fb1606%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to