note 79942 added to function.PDO-beginTransaction
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 20 Dec 2007 15:04:56 +0000 |
| Subject: | note 79942 added to function.PDO-beginTransaction | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133813@lists.php.net to get a copy of this message | ||
beginTransaction will through a PDOException if you execute it while a PDO transaction is already
active. Additionally the PDO engine doesn't seem to provide any way of determining if there is
a transaction "in flight" so if you might be calling a function from within another
function that starts a transaction you'll have to wrap the beginTransaction () call in a try ..
catch block.
----
Server IP: 194.145.210.4
Probable Submitter: 82.108.107.33
----
Manual Page -- http://www.php.net/manual/en/function.PDO-beginTransaction.php
Edit -- https://master.php.net/note/edit/79942
Del: integrated -- https://master.php.net/note/delete/79942/integrated
Del: useless -- https://master.php.net/note/delete/79942/useless
Del: bad code -- https://master.php.net/note/delete/79942/bad+code
Del: spam -- https://master.php.net/note/delete/79942/spam
Del: non-english -- https://master.php.net/note/delete/79942/non-english
Del: in docs -- https://master.php.net/note/delete/79942/in+docs
Del: other reasons-- https://master.php.net/note/delete/79942
Reject -- https://master.php.net/note/reject/79942
Search -- https://master.php.net/manage/user-notes.php