Re: MDB2 dropDatabase issue

From: Date: Wed, 18 Oct 2006 10:04:55 +0000
Subject: Re: MDB2 dropDatabase issue
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25497@lists.php.net to get a copy of this message
Alessandro Pasotti wrote:
Hello, I'm getting crazy debugging a script where a DB table is dropped. In the same script I repeteadly create and drop the same pgsql table (it's a unit test script), this is the code: $new_db_name = 'test_geodb';
        $mdb2->loadModule('Manager');
// Pass
        $this->assertFalse(PEAR::isError($mdb2));
// Pass
        $this->assertTrue(in_array($new_db_name, $mdb2->listDatabases()));
        // Pass
        $this->assertTrue(MDB2_OK == $mdb2->dropDatabase($new_db_name));
// Fail
        $this->assertFalse(in_array($new_db_name, $mdb2->listDatabases()));
Looks ok. Do you have any problems? regards, Lukas

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