Re: DB_DataObjects

From: Date: Mon, 22 Mar 2004 10:48:44 +0000
Subject: Re: DB_DataObjects
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11441@lists.php.net to get a copy of this message
Daniel Kopp wrote:
Hi!
When you turn up the debug level using (for example) DB_DataObject::debugLevel(5), then you'll see that DataObject is capable of finding out by itself if an update actually needs to be performed. If not, it will print a debug message like "No data affected by update".
Actually that message comes from the database. - DataObjects, just relays it back.
Exactly that's my point ... Why does it not realize that there is nothing to do? Because if there is nothing to do it will send UPDATE person SET WHERE id=12; or what? Is that worth a bug-report? If you do send it a string to compare - Dataobjects should generate the error..
Regards Alan
Regards Daniel
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.general (#11441) next »