django/tests/schema
Simon Charette 813805833a Fixed #27631 -- Prevented execution of transactional DDL statements when unsupported.
Executing a DDL statement during a transaction on backends that don't support
it silently commits, leaving atomic() in an incoherent state.

While schema_editor.execute() could technically be used to execute DML
statements such usage should be uncommon as these are usually performed through
the ORM. In other cases schema_editor.connection.execute() can be used to
circumvent this check.

Thanks Adam and Tim for the review.
2016-12-28 19:43:32 -05:00
..
__init__.py Merge branch 'master' into schema-alteration 2013-04-18 17:16:39 +01:00
fields.py Fix import sorting problem. 2015-09-21 22:55:18 +02:00
models.py Refs #26384 -- Isolated a test model in schema tests. 2016-12-23 21:43:49 -05:00
tests.py Fixed #27631 -- Prevented execution of transactional DDL statements when unsupported. 2016-12-28 19:43:32 -05:00