Re: db_dataobject->free() method

From: Date: Mon, 28 Feb 2005 01:01:00 +0000
Subject: Re: db_dataobject->free() method
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-17713@lists.php.net to get a copy of this message
free just releases some resources (to try and free up some memory), it does not enable you to run another query on the same object. just dont do it ;) free() releases the result cache for an object, and DB's cache of insertid's. Regards Alan On Sat, 2005-02-26 at 18:45 +0100, mishal@centrum.cz wrote: > Hello, > > i'm using db_dataobject's free() method to free the globals when doing a > lot of find calls. > I have a problem with this. > When calling > > $dao->free() > > and then in another db_dataobject dao->insert() > i got an error: > Fatal error: Call to undefined function: quote() in e:\localhost\shared\pear\DB\DataObject.php > on line 938 > (i'm assigning values to dataobject) > > a noticed that db_dataobject tries to use cached connection, but it is > not a real connection to db (cleaned?? with free() method??) > > is this expected behaviour? > > thank you. > > Michi > > >

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