PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » MDB2 » Bug #9895

Error mapping broken since 5.2.0

Details

Submitted2007-01-20 23:09 UTC
Fromtoni dot viemero at iki dot fi
Assignedquipo
StatusClosed
PackageMDB2
PHP Version5_2 CVS-2007-01-20
OSFreeBSD
Roadmaps(Not assigned)

Comments

[2007-01-20 23:09 UTC] toni dot viemero at iki dot fi

Description:
------------
I've just hit exactly the same problem as described in this bug:

http://pear.php.net/bugs/bug.php?id=9599

Test script:
---------------
<?php

require_once 'MDB2.php';

$dsn = array(
'phptype' => 'sqlite',
'database' => 'test.db',
);
$mdb2 =& MDB2::factory($dsn);

$res = $mdb2->nextID('test');
if (PEAR::isError($res)) {
print "fail";
} else {
print $res;
}

Expected result:
----------------
1

Actual result:
--------------
fail