Download for Windows Premium
Publiciteit
bloc atomic
atomic block
Si nécessaire, ajoutez un bloc atomic supplémentaire à cet effet.
If necessary, add an extra atomic block for this purpose.
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.
The correct way to catch database errors is around an atomic block as shown above.
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.
Before doing that, make sure you've rolled back the transaction to a known-good savepoint within the current atomic block!
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.
Attempting to commit, roll back, or change the autocommit state of the database connection within an atomic block will raise an exception.
À 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.
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.
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.
If you catch and handle exceptions inside an atomic block, you may hide from Django the fact that a problem has happened.
Après une telle erreur, la transaction est cassée et Django procédera à son annulation dès la sortie du bloc atomic.
After such an error, the transaction is broken and Django will perform a rollback at the end of the atomic block.
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.
The class-level atomic block described above allows the creation of initial data at the class level, once for the whole TestCase.
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.
There is one ATOMIC block per natively compiled stored procedure, at the outer scope of the procedure.
Les opérations BEGIN, ROLLBACK et COMMIT ne peuvent pas être utilisées dans un bloc Atomic.
BEGIN, ROLLBACK, and COMMIT operations cannot be used inside an atomic block.
Si l'on se trouve déjà en mode autocommit et en-dehors d'un bloc atomic(), la fonction est immédiatement exécutée sans attendre de commit.
When in autocommit mode and outside of an atomic() block, the function will run immediately, not on commit.
Si cette écriture de base de données potentielle se trouve annulée (rollback), typiquement lorsqu'une exception non traitée est générée dans le bloc atomic(), la fonction est ignorée et ne sera jamais appelée.
If that hypothetical database write is instead rolled back (typically when an unhandled exception is raised in an atomic() block), your function will be discarded and never called.
Si vous faites cela à l'intérieur d'un bloc atomic(), tout le bloc sera quand même annulé, car Django ne sait pas que vous avez géré la situation à un plus bas niveau !
If you're doing this inside an atomic() block, the entire block will still be rolled back, because it doesn't know you've handled the situation at a lower level!
Er zijn geen resultaten gevonden voor deze term.

Synoniemen voor bloc atomic in het Frans

Publiciteit

Resultaten: 18. Exact: 18. Verstreken tijd: 31 ms.