Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.21 KB

pdo-rollback.md

File metadata and controls

44 lines (33 loc) · 1.21 KB
title PDO::rollback | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.suite sql
ms.technology connectivity
ms.tgt_pltfrm
ms.topic conceptual
ms.assetid d918c1e3-1be0-4001-b3b0-000db6d9e8b8
caps.latest.revision 8
author MightyPen
ms.author genemi
manager craigg

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