Opened 9 years ago
Closed 9 years ago
#27631 closed Bug (fixed)
Prevent execution of transactional DDL statements when unsupported.
| Reported by: | Simon Charette | Owned by: | Simon Charette | 
|---|---|---|---|
| Component: | Migrations | Version: | dev | 
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
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.
Change History (4)
comment:1 by , 9 years ago
| Has patch: | set | 
|---|
comment:2 by , 9 years ago
| Summary: | Prevent execution of transactionnal DDL statements when unsupported. → Prevent execution of transactional DDL statements when unsupported. | 
|---|---|
| Triage Stage: | Unreviewed → Accepted | 
comment:3 by , 9 years ago
| Triage Stage: | Accepted → Ready for checkin | 
|---|
  Note:
 See   TracTickets
 for help on using tickets.
    
PR