本文整理汇总了PHP中ocirollback函数的典型用法代码示例。如果您正苦于以下问题:PHP ocirollback函数的具体用法?PHP ocirollback怎么用?PHP ocirollback使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ocirollback函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rollback
function rollback($sp)
{
if ($sp) {
return ociexecute(ociparse($this->connection, "ROLLBACK TO SAVEPOINT {$sp}"));
} else {
return ocirollback($this->connection);
}
}
示例2: _sql_transaction
/**
* SQL Transaction
* @access private
*/
function _sql_transaction($status = 'begin')
{
switch ($status) {
case 'begin':
return true;
break;
case 'commit':
return @ocicommit($this->db_connect_id);
break;
case 'rollback':
return @ocirollback($this->db_connect_id);
break;
}
return true;
}
示例3: rollback
/**
* Rollback a transaction
*
* @param unknown_type $model
* @return boolean True on success, false on fail
* (i.e. if the database/model does not support transactions,
* or a transaction has not started).
*/
function rollback()
{
return ocirollback($this->connection);
}
示例4: DBrollback
function DBrollback()
{
global $DB;
$result = false;
if (isset($DB['DB']) && !empty($DB['DB'])) {
switch ($DB['TYPE']) {
case 'MYSQL':
$result = DBexecute('rollback');
break;
case 'POSTGRESQL':
$result = DBexecute('rollback');
break;
case 'ORACLE':
$result = ocirollback($DB['DB']);
break;
case 'SQLITE3':
$result = DBexecute('rollback');
unlock_db_access();
break;
}
}
return $result;
}
示例5: DBrollback
function DBrollback()
{
global $DB;
$result = false;
switch ($DB['TYPE']) {
case ZBX_DB_MYSQL:
$result = DBexecute('rollback');
break;
case ZBX_DB_POSTGRESQL:
$result = DBexecute('rollback');
break;
case ZBX_DB_ORACLE:
$result = ocirollback($DB['DB']);
break;
case ZBX_DB_DB2:
$result = db2_rollback($DB['DB']);
db2_autocommit($DB['DB'], DB2_AUTOCOMMIT_ON);
break;
case ZBX_DB_SQLITE3:
$result = DBexecute('rollback');
unlock_sqlite3_access();
break;
}
return $result;
}
示例6: ocirollback
function &rollBack()
{
return ocirollback($this->_connection);
}
示例7: rollback
function rollback()
{
if (!$this->isConnect) {
return false;
}
return ocirollback($this->connection);
}
示例8: db_rollback
/**
* db_rollback() - Rollback a transaction
*/
function db_rollback()
{
global $sys_db_oci_commit_mode, $gfconn;
$sys_db_oci_commit_mode = 'OCI_COMMIT_ON_SUCCESS';
return ocirollback($gfconn);
}
示例9: ocidefinebyname
ocidefinebyname();
ocierror();
ociexecute();
ocifetch();
ocifetchinto();
ocifetchstatement();
ocifreecollection();
ocifreecursor();
ocifreedesc();
ocifreestatement();
ociinternaldebug();
ociloadlob();
ocilogoff();
ocilogon();
ocinewcollection();
ocinewcursor();
ocinewdescriptor();
ocinlogon();
ocinumcols();
ociparse();
ociplogon();
ociresult();
ocirollback();
ocirowcount();
ocisavelob();
ocisavelobfile();
ociserverversion();
ocisetprefetch();
ocistatementtype();
ociwritelobtofile();
ociwritetemporarylob();