Re: Transactions in mdb2
| From: | Lukas Smith | Date: | Wed, 22 Mar 2006 16:03:55 +0000 |
| Subject: | Re: Transactions in mdb2 | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23391@lists.php.net to get a copy of this message | ||
Paolo Sala wrote:
Lukas Smith scrisse in data 03/22/06 15:45:ah yes .. this is done at connect .. so use MDB2::connect() instead of MDB2::factory() regards, LukasIt was a stupid foobar. In the past InnoDB was not bundled with all major MySQL binary releases, which is why you need to specifically enable transaction support. I probably should have changed this default before going to 1.0.0 but its too late now. $options['use_transactions'] = true; $options['default_table_type'] = 'InnoDB'; $mdb2 = MDB2::factory($dsn, $options);Thank you very much Lukas but doesn't seems to work. I put the following code// After include DB::MDB2 and set $dsn...$options['use_transactions'] = true; $options['default_table_type'] = 'InnoDB'; $mdb2=& MDB2::factory($dsn, $options); if (!$mdb2->supports('transactions')) echo 'I'm sorry, no transactions support.';