Re: Bug with MDB2 cvs and DB_DataObject

From: Date: Tue, 22 Nov 2005 10:24:17 +0000
Subject: Re: Bug with MDB2 cvs and DB_DataObject
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-40465@lists.php.net to get a copy of this message
Dan Rossi wrote:
ive been forced to use the cvs of MDB2 to get the liveuser package to work properly, however when i just went and updated everything i ran into a bug with my dataobjects. I have a method within one of my dataobjects running a query to set some mysql variables like so $this->query("SET @days_left:=DAY(LAST_DAY(NOW())) - DAY(NOW())"); Within the query method for dataobject its calling the numrows method , obviouslly this isnt going to return any rows or something but it causes an error of so
MDB2 CVS just separated the API for manipulation and select statements. maniplation queries should not use exec() and get an integer returned with the affected rows select statements should continue to use the query() method for prepared queries there is an optional parameter to determine if its a manipulation query or not (default is not) regards, Lukas

« previous php.pear.dev (#40465) next »