downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

MysqlndUhConnection::txRollback> <MysqlndUhConnection::storeResult
[edit] Last updated: Fri, 14 Jun 2013

view this page in

MysqlndUhConnection::txCommit

(PECL mysqlnd-uh >= 1.0.1-alpha, PHP >= 5.4.0)

MysqlndUhConnection::txCommitCommits the current transaction

Descrição

public bool MysqlndUhConnection::txCommit ( mysqlnd_connection $connection )

Commits the current transaction.

Parâmetros

connection

Mysqlnd connection handle. Do not modify!

Valor Retornado

Returns TRUE on success. Otherwise, returns FALSE

Exemplos

Exemplo #1 MysqlndUhConnection::txCommit() example

<?php
class proxy extends MysqlndUhConnection {
 public function 
txCommit($res) {
  
printf("%s(%s)\n"__METHOD__var_export(func_get_args(), true));
  
$ret parent::txCommit($res);
  
printf("%s returns %s\n"__METHOD__var_export($rettrue));
  return 
$ret;
 }
}
mysqlnd_uh_set_connection_proxy(new proxy());

$mysqli = new mysqli("localhost""root""""test");
$mysqli->commit();
?>

O exemplo acima irá imprimir:

proxy::txCommit(array (
  0 => NULL,
))
proxy::txCommit returns true

Veja Também



add a note add a note User Contributed Notes MysqlndUhConnection::txCommit - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites