Re: Transactions in mdb2

From: Date: Wed, 22 Mar 2006 15:08:33 +0000
Subject: Re: Transactions in mdb2
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23388@lists.php.net to get a copy of this message
Paul Scott wrote:
$options['use_transactions'] = true; $options['default_table_type'] = 'InnoDB'; $mdb2 = MDB2::factory($dsn, $options); Is it better to set the options and pass them directly to the factory method, or to use the setOption method? I ask this, mainly because we connect to a number of data sources, and it makes it easier to dynamically set the options using setOption to a global db object.
it does not matter .. eithway works fine .. btw: you actually only need to set one of the options .. preferably the second. regards, Lukas

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