CUBRID Функции
PHP Manual

cubrid_rollback

(PECL CUBRID >= 8.3.0)

cubrid_rollbackExecutes rollback on the transaction

Описание

bool cubrid_rollback ( resource $conn_identifier )

The cubrid_rollback() function executes rollback on the transaction pointed by conn_handle, currently in progress.

Connection to server is closed after calling cubrid_rollback(). Connection handle, however, is still valid.

Список параметров

conn_identifier

Connection identifier.

Возвращаемые значения

TRUE, when process is successful.

FALSE, when process is unsuccessful.

Примеры

Пример #1 cubrid_rollback() example

<?php
$req 
cubrid_execute ($oid"insert into person values (2,’John’)");
if (
$req) {
   
cubrid_close_request ($req);
   if (
$failed) {
      
cubrid_rollback ($con);
   } else {
      
cubrid_commit ($con);
   }
}
?>

Смотрите также


CUBRID Функции
PHP Manual