Re: MDB2 transaction misconfiguration with mysql

From: Date: Thu, 06 Sep 2007 13:26:49 +0000
Subject: Re: MDB2 transaction misconfiguration with mysql
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27881@lists.php.net to get a copy of this message
fusillo wrote:
Lukas Kahwe Smith ha scritto:
Here is the code in the driver:
        $this->supported['transactions'] = $this->options['use_transactions'];
        if ($this->options['default_table_type']) {
            switch (strtoupper($this->options['default_table_type'])) {
[cut]
} }
confused.. the code seems correct as the empty string might match false in php, then the switch might be never run and $this->supported['transactions'] get the value of use_transactions
err right .. Then I do not know whats going on. I recommend that you either file a bug, or better yet, debug the driver code yourself. The code I pasted is taken from the connect() method in the MDB2_Driver_mysql class. regards, Lukas

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