• Vincent Pelletier's avatar
    storage: Forbid subtransactions. · 01b42a7a
    Vincent Pelletier authored
    ...when connection is used as a context manager (which is the expected
    coding style anyway).
    If silently ignored, rollback may be incomplete if a subtransaction already
    committed.
    And if commit only happen at outmost transaction, no-undo changes could
    come undone if outer transaction aborts.
    
    This is currently observed in the code, so no other change is needed.
    01b42a7a
storage.py 17.1 KB