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_DataObject » Bug #2106

update() will raise error if no changes are detected

Details

Submitted2004-08-10 20:32 UTC
Frommscifo at php dot net
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP VersionIrrelevant
OSANY
Roadmaps(Not assigned)

Comments

[2004-08-10 20:32 UTC] mscifo at php dot net

Description:
------------
DataObject.php v1.284 line 1168

$this->raiseError(
"update: No Data specifed for query $settings , {$this->_query['condition']}",
DB_DATAOBJECT_ERROR_NODATA);

The following code raises an error if no fields have changed and therefore no update is necessary. This error should be removed and instead return 0 since no rows were affected.