Re: MDB2 dropDatabase issue
| From: | Mark Wiesemann | Date: | Wed, 18 Oct 2006 11:52:46 +0000 |
| Subject: | Re: MDB2 dropDatabase issue | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25505@lists.php.net to get a copy of this message | ||
Alessandro Pasotti wrote:
> 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()));
>
>
> Am I missing something?
I remember that I had a similar issue with the ibase driver: it was a
auto-commit problem (AFAIR), and Lorenzo fixed it in the ibase driver.
Maybe the pgsql driver needs also this fix?
Regards,
Mark