• Aymeric Augustin's avatar
    Fixed #24921 -- set_autocommit(False) + ORM queries. · 91e9f1c9
    Aymeric Augustin yazdı
    This commits lifts the restriction that the outermost atomic block must
    be declared with savepoint=False. This restriction was overly cautious.
    
    The logic that makes it safe not to create savepoints for inner blocks
    also applies to the outermost block when autocommit is disabled and a
    transaction is already active.
    
    This makes it possible to use the ORM after set_autocommit(False).
    Previously it didn't work because ORM write operations are protected
    with atomic(savepoint=False).
    91e9f1c9
Adı
Son kayıt (commit)
Son güncelleme
..
examples Loading commit data...
aggregation.txt Loading commit data...
index.txt Loading commit data...
managers.txt Loading commit data...
models.txt Loading commit data...
multi-db.txt Loading commit data...
optimization.txt Loading commit data...
queries.txt Loading commit data...
sql.txt Loading commit data...
tablespaces.txt Loading commit data...
transactions.txt Loading commit data...