﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23909	RunSQL calls execute with params None, params used in map	James Rivett-Carnac	nobody	"with a migration operation:

{{{
    migrations.RunSQL(
        """"""CREATE TABLE ...; CREATE TABLE...; """""",
        """"""DROP TABLE ...; DROP TABLE...;"""""""",
        state_operations=[list of the equivalent migrations])
}}}

calling migrate on this gives me a TypeError on line in django.db.backends.schema.execute():96

{{{
    self.collected_sql.append((sql % tuple(map(self.quote_value, params))) + ';')
}}}

But this is being called by django.db.migrations.operations.special:69
{{{
    schema_editor.execute(statement, params=None)
}}}
This will always fail if it is called so - None never being itterable.  the method signature for {{{django.db.backends.schema.execute(sql, params=[])}}} should be enough rather than calling with None."	Bug	closed	Database layer (models, ORM)	1.7	Release blocker	fixed	migrations		Accepted	1	0	0	0	0	0
