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

search for in the

ingres_connect> <ingres_close
Last updated: Fri, 05 Sep 2008

view this page in

ingres_commit

(PHP 4 >= 4.0.2, PHP 5 <= 5.0.5, PECL ingres:1.0-1.4.3)

ingres_commitトランザクションをコミットする

説明

bool ingres_commit ([ resource $link ] )

ingres_commit() は、 現在オープンしているトランザクションをコミットし、 全ての変更をデータベースに保存します。

この関数はトランザクションをクローズします。 ingres_query() によりクエリを送信することで、 新規のトランザクションをオープンすることが可能です。

トランザクションをオープンする前に ingres_autocommit() をコールすることにより、 各クエリの後に自動的にサーバ側でコミットを行うことも可能です。

パラメータ

link

接続リンク ID。省略した場合は、最後にオープンしたリンクを使用します。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。



add a note add a note User Contributed Notes
ingres_commit
burckhardtNOSPAM at CUTMEgsf dot de
23-Jan-2002 06:00
Hi,
this might be obvious for the more enlightened among us, alas, I had to learn it the hard way (and I hope my interpretation is right):
WHENEVER you use ingres_commit(), you cannot use any other ingres-commands for this connection anymore, since ingres_commit() closes it. That means that any ingres_fetch_row/object/whatever has to come before the ingres_commit-call. I first thought, each ingres_query() had to be "committed", but that was wrong.

ingres_connect> <ingres_close
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites