当前位置: 首页>>代码示例>>PHP>>正文


PHP OCIcommit函数代码示例

本文整理汇总了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;
 }
开发者ID:pamcruz,项目名称:unimedjp,代码行数:7,代码来源:OracleDB.php

示例2: CommitTrans

 function CommitTrans()
 {
     $ret = OCIcommit($this->_connectionID);
     $this->_commit = OCI_COMMIT_ON_SUCCESS;
     $this->autoCommit = true;
     return $ret;
 }
开发者ID:qoire,项目名称:portal,代码行数:7,代码来源:adodb-oci8.inc.php

示例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;
 }
开发者ID:pamcruz,项目名称:unimedjp,代码行数:16,代码来源:oracle.class.php

示例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;
	}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:11,代码来源:adodb-oci8.old.inc.php

示例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;
 }
开发者ID:qlixes,项目名称:springphp,代码行数:19,代码来源:oci8_driver.php

示例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 != '') {
开发者ID:pamcruz,项目名称:unimedjp,代码行数:31,代码来源:servc.php


注:本文中的OCIcommit函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。