Re: Transactions in mdb2

From: Date: Wed, 22 Mar 2006 15:45:40 +0000
Subject: Re: Transactions in mdb2
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23389@lists.php.net to get a copy of this message
Lukas Smith scrisse in data 03/22/06 15:45:
It 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.';
and the answer is:
I'm sorry, no transactions support.
Where I wrong? Piviul

« previous php.pear.general (#23389) next »