Re: [ANNOUNCEMENT] DB_DataObject-0.10 (stable) Released (delete bug?)

From: Date: Wed, 11 Dec 2002 12:48:45 +0000
Subject: Re: [ANNOUNCEMENT] DB_DataObject-0.10 (stable) Released (delete bug?)
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2939@lists.php.net to get a copy of this message
I've installed 0.10 but my application is now failing on delete() operations. It seems that delete() no longer works if useWhere is false e.g. $entry = new DataObjects_Entry; $entry->list_id = $listid; $entry->email = $email; $entry->delete(); Used to do "delete from entry where list_id=whatever and email=whatever" (note that neither list_id nor email are the primary key) But now gives me the error: delete: No Data specifed for query If this is not a bug, it's a bug in the documentation, which says: "by default the delete will base it's query on the set variables" If it makes any difference, I'm using MySQL on Linux Mark

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