When the script ends or when a connection is about to be closed, if you have an outstanding transaction, PDO will automatically roll it back.
当脚本结束时,或者当一个连接即将被关闭时,如果有一个未完成的事务,那么 PDO将自动回滚该事务。
An application program defines the start and end of a global transaction, accesses resources within transaction boundaries, and usually decides whether to commit or roll back each transaction.
应用程序对全局事务的开始和结束进行了定义,在事务界限内获取资源,并且通常决定是否提交或回滚每个事务。
If the transaction in one resource commits successfully but another fails and must roll back, the first transaction can no longer be rolled back, so the state of the application becomes inconsistent.
如果一个资源中的事务成功提交,而另一个资源中的事务提交失败且必须回滚,那么第一个事务将不再回滚,这将使应用程序的状态不一致。
Phase 2, commit: If all of the resources are ready, they all commit — after which the old data is deleted and the transaction can no longer roll back.
第2阶段,提交:如果所有的资源都准备就绪,则全部进行提交——在旧数据删除且事务不再回滚之后进行。
In the second case, where the MCA has acted on the COMMIT but could not deliver the response code, there is no transaction to roll back.
在第二种情况下,MCA已对COMMIT采取了行动,但是未能传输响应代码,因此将不存在要回滚的事务。
Stateless services are unaware of transactional state; therefore they cannot be requested to "roll-back" a set of changes if a transaction fails.
无状态的服务意识不到事务状态,因此如果事务失败时,不能请求它们“回滚”一组变更。
If either the database update or the MQ enqueuing fails, then the entire transaction should roll back.
无论是数据库更新或是MQ 队列产生错误,整个事务都应被取消。
Then, roll back all the transaction IDs that are in the "prepared" phase
然后回滚“准备”阶段中的所有事务ID
If any of the changes cannot be committed, the transaction will roll back, undoing all of the changes as if the transaction never took place.
如果有任何变更不能被提交,则事务将回滚(roll back),并取消所有的变更,恢复到事务从没有发生之前的状态。
This means that, if the failed flag has been set because a message has not been received, we can roll back the transaction and return all of the other messages in the group back to the queue.
这意味着,如果由于尚未接收到某条消息而已经设置了failed标志,则可以回滚事务,并将组中的所有其他消息返回给队列。
Once all the updates are performed you can invoke the commit method to commit the transaction, or the rollback method to roll back the transaction. Listing 5 illustrates this technique.
执行了所有更新之后,您可以调用commit方法来提交事务,或者调用rollback方法来回滚事务。
If the code performing the actions decides not to commit or cannot commit successfully, then it must roll back the transaction to undo the actions.
如果代码执行的操作决定不进行提交或者不能成功提交,那么它必须回滚该事务以取消这些操作。
The transaction manager manages global transactions and coordinates the decision to commit them or roll them back, thus ensuring their atomicity.
事务管理器管理全局事务,并协调进行提交或回滚的决定,从而确保它们的原子性。
For demonstration purposes, the transfer operation is modified to roll back the transaction whenever the transfer amount is an even number.
出于演示的目的,我们将转帐操作修改为每当转帐金额是偶数时就回滚事务。
This causes the transaction to complete (commit or roll back) faster than in the API Layer transaction strategy.
其结果是,事务会比在api层事务策略中更快地完成(提交或回滚)。
Not only will Client a receive an exception if it tries to roll back the transaction, but Client a cannot take corrective action because the transaction has already been marked for rollback.
客户机a在尝试回滚事务时,不仅会收到一个异常,而且客户机a还不能采取纠正操作,因为事务已经被标记为回滚。
In this case, the RM generally does most of the work to commit or roll back the transaction.
在这种情况下,RM通常执行提交或回滚事务所需的大部分工作。
The only methods in the entire application architecture that start, commit, and roll back a transaction are public methods contained in API layer's domain classes.
整个应用程序架构中用于启动、提交和回滚事务的惟一方法就是api层的域类中包含的公共方法。
For user and server processes, PMON will release the locks held by users, roll back every uncommitted transaction, and release any resources this process is using.
而对于用户和服务器进程,PMON将释放用户持有的锁,回滚每个未提交事件,并释放该进程正在使用的所有资源。
The developer must specify where and when to roll back a transaction when a checked exception occurs.
开发人员必须指定出现异常时在何处以及何时回滚事务。
If an application crashes in the middle of a transaction, when it restarts, transaction recovery will roll back the open transaction.
如果在事务进行期间应用程序崩溃,则在重启时,事务恢复将回滚该事务。
If the corresponding spatial row does not exist, there is simply nothing to delete; this condition is not an exception that causes a transaction to roll back.
如果对应的空间行不存在,那么就不删除任何东西;这种情况不是异常,不会导致事务回退。
When you roll back the transaction in Listing 2, the message received is restored in the queue bookorder and the row will also be removed from shipping_tab.
当回滚清单2中的事务时,接收到的消息被恢复到队列bookorder中,这一行将从shipping _ tab中删除。
The container will not automatically roll back a transaction on a checked exception when you use the Declarative Transaction model.
在使用DeclarativeTransaction 模型时,容器将不会针对检测到的异常自动回滚事务。
Transaction manager while sitting on client side, initiate the transaction and coordinates with all the processes that participate in a distributed transaction to commit or roll back.
事务管理是在客户端设置的,它负责启动事务,并且协调所有参与到分布式中的进程,是提交或者是回滚。
Directories generally do not support complicated transaction or roll-back schemes found in database management systems designed for handling high-volume complex updates.
目录通常不支持在数据库管理系统中为处理大量复杂更新而设计的并发事务或者回滚机制。
When a designer transaction is canceled, the transaction processing mechanism attempts to roll back the changes that have been made so far in the transaction.
取消设计器事务后,事务处理机制尝试回滚事务中到目前为止所做的更改。
If a critical resource is unavailable or some other condition prevents the entire transaction from being completed, you can roll back the transaction instead of committing it.
若一个重要的资源已不适用或某些其他的情况造成整个交易不能完成,您可复原此交易而不用认可它。
A transaction is a way to group, or batch, a series of updates to a data source so that all are committed at once or none are committed if you roll back the transaction.
交易是对资料来源以群组或批次一系列更新的方法,使得所有更新一次认可,或在您复原交易时不认可任何更新。
By establishing a transaction, you can execute a series of such calls while retaining the ability to roll them back.
借由建立交易,您可执行一系列这种呼叫却仍能保留将其复原的能力。
应用推荐