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 #3680

getOne throws error

Details

Submitted2005-03-03 08:22 UTC
Fromrgu at era-it dot ch
Assigneddanielc
StatusClosed
PackageDB
PHP Version4.3.10
OSWin XP
Roadmaps(Not assigned)

Comments

[2005-03-03 08:22 UTC] rgu at era-it dot ch

Description:
------------
After Upgrade from DB 1.6.8 to 1.7.1 the getOne command throws an error back. No changes were made to the script or any config file.

Reproduce code:
---------------
// Execute query
$selTestID = "SELECT max(\"test_id\") from search_table";

$sth = $dbh->getOne($selTestID);
if (DB::isError($sth)) {
die ($sth->getMessage());
}

Expected result:
----------------
Correct row ID, f.e. ID_0001

Actual result:
--------------
DB Error: syntax error