note 23221 added to function.ibase-trans
| From: | jon at tgpsolutions dot com | Date: | Thu, 11 Jul 2002 22:56:03 +0000 |
| Subject: | note 23221 added to function.ibase-trans | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32935@lists.php.net to get a copy of this message | ||
When using transactions, you must execute queries using the transaction identifier as the
link_identifier in ibase_query.
Example:
$db = ibase_connect( ... );
$tr = ibase_trans();
$result = ibase_query($tr, $sql1);
$result = ibase_query($tr, $sql2);
ibase_rollback($tr);
You must use ibase_query($tr, $sql1). Calling ibase_query($db, $sql1) will not allow you to roll
back - it will be commited when the script finishes executing.
--
http://www.php.net/manual/en/function.ibase-trans.php
http://master.php.net/manage/user-notes.php?action=edit+23221
http://master.php.net/manage/user-notes.php?action=delete+23221
http://master.php.net/manage/user-notes.php?action=reject+23221