PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #519

Call to undefined function: raiseerror() in ..DB/common.php on line 1239

Details

Submitted2004-01-04 21:30 UTC
Frominfo at robert-hennig dot de
StatusBogus
PackageDB
PHP Version4.3.1
OSlinux
Roadmaps(Not assigned)

Comments

[2004-01-04 21:30 UTC] info at robert-hennig dot de

Description:
------------
When using DB_Common::affectedRows() in a class with mySQL as database this error appears.

Reproduce code:
---------------
<?php
require_once 'DB.php';
$dsn = "mysql://user:pass@localhost/db";
$db = DB::Connect($dsn);
if(DB::isError($db))
die($result->getMessage());
$query = "SELECT * FROM benutzer";
$result = $db->query($query);
$rc = DB_Common::affectedRows();
if(DB::isError($db))
die($result->getMessage());
echo $rc;
?>

Expected result:
----------------
The correct error (DB_ERROR_NOT_CAPABLE).