Home » Database » DB » Bug #3680
getOne throws error
Details
| Submitted | 2005-03-03 08:22 UTC |
|---|---|
| From | rgu at era-it dot ch |
| Assigned | danielc |
| Status | Closed |
| Package | DB |
| PHP Version | 4.3.10 |
| OS | Win 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