note 113602 added to pdo.begintransaction
| From: | mtjo62 at gmail dot com | Date: | Sun, 03 Nov 2013 23:23:01 +0000 |
| Subject: | note 113602 added to pdo.begintransaction | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197418@lists.php.net to get a copy of this message | ||
For the PDO driver for the Firebird server, you have to explicitly disable autocommit to initiate
the transaction as well as explicitly enable autocommit to commit it.
$dbh->setAttribute( PDO::ATTR_AUTOCOMMIT, 0 );
$dbh->beginTransaction();
/** Query block */
$dbh->commit();
$dbh->setAttribute( PDO::ATTR_AUTOCOMMIT, 1 );
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/pdo.begintransaction.php
Edit -- https://master.php.net/note/edit/113602
Del: integrated -- https://master.php.net/note/delete/113602/integrated
Del: useless -- https://master.php.net/note/delete/113602/useless
Del: bad code -- https://master.php.net/note/delete/113602/bad+code
Del: spam -- https://master.php.net/note/delete/113602/spam
Del: non-english -- https://master.php.net/note/delete/113602/non-english
Del: in docs -- https://master.php.net/note/delete/113602/in+docs
Del: other reasons-- https://master.php.net/note/delete/113602
Reject -- https://master.php.net/note/reject/113602
Search -- https://master.php.net/manage/user-notes.php