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

search for in the

ingres_charset> <ingres_autocommit_state
[edit] Last updated: Fri, 25 May 2012

view this page in

ingres_autocommit

(PHP 4 >= 4.0.2, PHP 5 <= 5.0.5, PECL ingres >= 1.0.0)

ingres_autocommitautocommit をオンまたはオフに切替える

説明

bool ingres_autocommit ( resource $link )

ingres_autocommit() は、サーバーの autocommit モードをオンまたはオフに切替えるために、トランザクションをオープンする前 (最初に ingres_query() をコールする前、または ingres_rollback() あるいは ingres_commit() をコールした直後) にコールされます (スクリプトの実行開始には、autocommit モードはオフです)。

autocommit モードがオンの場合、各クエリはサーバーにより自動的にコミットされます。 これは、ingres_query() をコールした後に常に ingres_commit() をコールすることと等価です。 autocommit が有効かどうかを調べるには ingres_autocommit_state() を使用します。

デフォルトで、Ingres will はリクエストの終了時に未コミットのトランザクションをロールバックします。 この関数あるいは ingres_commit() を使うことで、データを確実にデータベースにコミットすることができます。

パラメータ

link

接続リンク ID。

返り値

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

参考



add a note add a note User Contributed Notes ingres_autocommit
There are no user contributed notes for this page.

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