Home » Database » DB_DataObject » Bug #2106
update() will raise error if no changes are detected
Details
| Submitted | 2004-08-10 20:32 UTC |
|---|---|
| From | mscifo at php dot net |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | Irrelevant |
| OS | ANY |
| 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.