Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.09 KB

pdo-rollback.md

File metadata and controls

37 lines (26 loc) · 1.09 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic
PDO::rollBack
API reference for the PDO::rollBack function in the Microsoft PDO_SQLSRV Driver for PHP for SQL Server.
David-Engel
davidengel
08/10/2020
sql
connectivity
reference

PDO::rollback

[!INCLUDEDriver_PHP_Download]

Discards database commands that were issued after calling PDO::beginTransaction and returns the connection to auto commit mode.

Syntax

  
bool PDO::rollBack ();  

Return Value

true if the method call succeeded, false otherwise.

Remarks

PDO::rollback is not affected by (and does not affect) the value of PDO::ATTR_AUTOCOMMIT.

See PDO::beginTransaction for an example that uses PDO::rollback.

Support for PDO was added in version 2.0 of the [!INCLUDEssDriverPHP].

See Also

PDO Class

PDO