If necessary, add an extra atomic block for this purpose.
Si nécessaire, ajoutez un bloc atomic supplémentaire à cet effet.
The correct way to catch database errors is around an atomic block as shown above.
La manière correcte d'intercepter les erreurs de base de données est de le faire autour du bloc atomic comme dans l'exemple ci-dessus.
Actions within this atomic block transaction include the enlistment of resource managers from a repository.
A l'intérieur de cette transaction de bloc atomique, des actions comprennent l'enrôlement de gestionnaires de ressources à partir d'un référentiel.
Rather, memory conflicts can cause a rollback and re-execution of the atomic block transaction, which can be repeated as long as necessary, until the memory resource manager votes to commit.
Au lieu de cela, des conflits de mémoire peuvent provoquer un retour en arrière et une réexécution de la transaction de bloc atomique, pouvant se répéter aussi longtemps que nécessaire, jusqu'à ce que le gestionnaire de ressources de mémoire décide de valider la transaction.
Before doing that, make sure you've rolled back the transaction to a known-good savepoint within the current atomic block!
Avant de faire cela, assurez-vous d'avoir bien annulé la transaction jusqu'à un point de sauvegarde en bon état à l'intérieur du bloc atomic actuel.
Attempting to commit, roll back, or change the autocommit state of the database connection within an atomic block will raise an exception.
Si vous tentez de valider une transaction, de l'annuler ou de modifier l'état de validation automatique de la connexion de base de données à l'intérieur d'un bloc atomic, vous obtiendrez une exception.
Avoid catching exceptions inside atomic! When exiting an atomic block, Django looks at whether it's exited normally or with an exception to determine whether to commit or roll back.
À la sortie d'un bloc atomic, Django examine si la sortie se fait normalement ou par une exception afin de déterminer s'il doit valider ou annuler la transaction.
If you catch and handle exceptions inside an atomic block, you may hide from Django the fact that a problem has happened.
Si vous interceptez et gérez des exceptions à l'intérieur du bloc atomic, vous cachez à Django le fait qu'un problème est survenu.
After such an error, the transaction is broken and Django will perform a rollback at the end of the atomic block.
Après une telle erreur, la transaction est cassée et Django procédera à son annulation dès la sortie du bloc atomic.
The class-level atomic block described above allows the creation of initial data at the class level, once for the whole TestCase.
Le bloc atomic au niveau de la classe mentionné ci-dessus permet la création de données initiales au niveau de la classe, une seule fois pour l'ensemble de TestCase.
Previously the outermost atomic block couldn't be declared with savepoint=False when autocommit was turned off. Performance considerations
Précédemment, le bloc atomique initial ne pouvait pas être déclaré avec savepoint=False lorsque la validation automatique était désactivée.
BEGIN, ROLLBACK, and COMMIT operations cannot be used inside an atomic block.
Les opérations BEGIN, ROLLBACK et COMMIT ne peuvent pas être utilisées dans un bloc Atomic.
There is one ATOMIC block per natively compiled stored procedure, at the outer scope of the procedure.
Il y a un bloc ATOMIC par procédure stockée compilée en mode natif, au niveau de l'étendue externe de la procédure.