本文整理汇总了PHP中OCIcommit函数的典型用法代码示例。如果您正苦于以下问题:PHP OCIcommit函数的具体用法?PHP OCIcommit怎么用?PHP OCIcommit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OCIcommit函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: query
function query($sql)
{
$query = OCIParse($this->conn, $sql);
OCIExecute($query);
OCIcommit($this->conn);
return $query;
}
示例2: CommitTrans
function CommitTrans()
{
$ret = OCIcommit($this->_connectionID);
$this->_commit = OCI_COMMIT_ON_SUCCESS;
$this->autoCommit = true;
return $ret;
}
示例3: queryWithErrors
function queryWithErrors($sql)
{
$errors = array();
$stmt = OCIParse($this->conn, $sql);
if (!$stmt) {
$errors = oci_error();
throw new Exception("Erro ao executar comando: " . htmlentities($errors['message']));
}
$executa = OCIExecute($stmt);
if (!$executa) {
$errors = oci_error($stmt);
throw new Exception("Erro ao executar comando: " . htmlentities($errors['message']));
}
OCIcommit($this->conn);
return $stmt;
}
示例4: CommitTrans
function CommitTrans($ok=true)
{
if ($this->transOff) return true;
if (!$ok) return $this->RollbackTrans();
if ($this->transCnt) $this->transCnt -= 1;
$ret = OCIcommit($this->_connectionID);
$this->_commit = OCI_COMMIT_ON_SUCCESS;
$this->autoCommit = true;
return $ret;
}
示例5: trans_commit
/**
* Commit Transaction
*
* @access public
* @return bool
*/
function trans_commit()
{
if (!$this->trans_enabled) {
return TRUE;
}
// When transactions are nested we only begin/commit/rollback the outermost ones
if ($this->_trans_depth > 0) {
return TRUE;
}
$ret = OCIcommit($this->conn_id);
$this->_commit = OCI_COMMIT_ON_SUCCESS;
return $ret;
}
示例6: f_situacao_autorizacao
echo "<center class='advertencia'>Transação: {$v_nrautorizacao}</strong><br>";
echo "<p align=\"center\">\n <a onClick=\"javascript:abre_janela_hist('{$v_nrautorizacao}')\" target=\"principal\"><IMG SRC=\"hist1.bmp\" alt=\"Histórico da Autorização\" BORDER=0></a>\n <a onClick=\"javascript:abre_impressao('{$v_nrautorizacao}')\" target=\"principal\"><IMG SRC=\"print.bmp\" alt=\"Impressão de recibo\" BORDER=0></a>\n </p>";
}
$sql = "\n select f_situacao_autorizacao('{$v_nrautorizacao}') SITUACAO from dual";
$result = $db->query($sql);
$rows = $db->fetch_array($result);
if ($rows[SITUACAO] == 'EM' or $rows[SITUACAO] == 'RT') {
if ($nrcheq != !1 && $erro == 'N' && $awcheque == 'S') {
//Utilizando o cheque
$stmt21 = ociparse($conn, "UPDATE EMISS_CHEQUE_CONSULTA SET CDSERIE_GUIA = '{$vcdserie_guia}', NRGUIA = '{$vnrguia}' WHERE NRCHEQUE = '{$nrcheq}'");
OCIexecute($stmt21);
OCIcommit($conn);
OCIFreeStatement($stmt21);
$stmt21 = ociparse($conn, "UPDATE PRE_AUTORIZACAO SET CDSERIE_GUIA = '{$vcdserie_guia}', NRGUIA = '{$vnrguia}', AOSITUACAO_CHEQUE='U' WHERE nrautorizacao = '{$nrcheq}'");
OCIexecute($stmt21);
OCIcommit($conn);
OCIFreeStatement($stmt21);
echo "<center class='advertencia'>Nº Cheque-Consulta: {$nrcheq}<br></center>";
}
echo "<center class='advertencia'>Nº Série/Guia: {$vcdserie_guia}-{$vnrguia}<br>";
echo "<font class='info'><strong>Transação solicitada por {$emissor} em {$dtatendimento} às {$hratendimento}</font></center><br><br>";
if ($poesenha == 'S') {
$stmt4 = ociparse($conn, "SELECT TXSENHA_AUTORIZ FROM EMISSAO_GUIA WHERE CDSERIE_GUIA = '{$sereqcon}' AND NRGUIA = '{$vnrguia}'");
OCIdefineByName($stmt4, "txsenha_autoriz", $txsenha_autoriz);
OCIexecute($stmt4);
if (OCIFetch($stmt4)) {
$result3 = OCIResult($stmt4, 1);
}
OCIFreeStatement($stmt4);
}
if ($poesenha == 'S' and $result3 != '') {