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_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 を返します。
ingres_commit
burckhardtNOSPAM at CUTMEgsf dot de
23-Jan-2002 09:00
23-Jan-2002 09:00
