PEAR is archived and read-only

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

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