MDB2 and transactions
| From: | Martin Marques | Date: | Fri, 15 Sep 2006 21:44:48 +0000 |
| Subject: | MDB2 and transactions | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-25145@lists.php.net to get a copy of this message | ||
In PEAR::MDB2 is it mandatory to do a beginTransaction()
commit() to work with transactions?
In PEAR::DB I used to set autocommit(false) and every time I
executed a query with an INSERT, UPDATE or DELETE PEAR::DB
started a new transaction which I finished with a commit().
How should I go with MDB2?
--
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------