RE: [PEAR] Transaction support
| From: | David DiMaria | Date: | Tue, 09 Jul 2002 22:20:45 +0000 |
| Subject: | RE: [PEAR] Transaction support | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-1830@lists.php.net to get a copy of this message | ||
// begin transaction
$db->autoCommit(false);
$result = $db->query("update a set b='c'");
if (DB::isError($result)) {$db->rollback(); die ($result->getMessage());}
// end transaction
$db->commit();
-David
-----Original Message-----
From: Bob Bell [mailto:bobbell@zk3.dec.com]
Sent: Tuesday, July 09, 2002 4:10 PM
To: pear-general@lists.php.net
Subject: [PEAR] Transaction support
Are there any features in PEAR DB to support transactions? I'm
upgrading my MySQL tables to InnoDB to support transactions, but I don't
see any transaction related routines at
http://pear.php.net/manual/en/core.db.php
--
Bob Bell <bobbell@zk3.dec.com>
-------------------------------------------------------------------------
"Computers are like air conditioners -- they stop working properly
if you open WINDOWS."
-- Humorix (http://i-want-a-website.com/about-linux/)
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php