PEAR is archived and read-only

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

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).