Re: MDB2 transaction misconfiguration with mysql
| From: | fusillo | Date: | Thu, 06 Sep 2007 00:56:32 +0000 |
| Subject: | Re: MDB2 transaction misconfiguration with mysql | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27875@lists.php.net to get a copy of this message | ||
i tried a solution for my problem:
before the check instruction i enter a sql select to a innodb table:
$mdb2->query('select * from movimento');
$options = array('wait' => 'WAIT', 'rw' => 'READ WRITE');
$isolation_level='READ COMMITTED';
$mdb2->setTransactionIsolation($isolation_level, $options);
if ($mdb2->supports('transactions'))
echo 'transaction able';else
echo 'transaction disable';now i get positive response on the test and no exception is thrown on transaction MDB2 command. This seems follows the db thinking linee because it allows to mix table with different engines on the same db but it bring in changes based on the dbms version. Is there a more logical method to run it?