Changes between Initial Version and Version 1 of Ticket #24921, comment 10
- Timestamp:
- Jun 7, 2015, 12:11:08 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24921, comment 10
initial v1 5 5 For the ORM to function with autocommit off, we should change the `savepoint` parameter of `atomic` to add a third-value, `None` (three-valued booleans, grrr), which would mean "automatic" and be implemented as follows: 6 6 7 {{{ 7 8 if self.savepoint is None: 8 9 self.savepoint = not connection.in_atomic_block and not connection.get_autocommit() 10 }}} 9 11 10 12 In other words, it would mean "no savepoint, unless I'm the outermost atomic block in a connection that is already in a transaction, which means I can't use a plain transaction"