Re: cvs: pear /DB/DB common.php

From: Date: Mon, 09 Jun 2003 01:46:12 +0000
Subject: Re: cvs: pear /DB/DB common.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-10785@lists.php.net to get a copy of this message
----- Original Message ----- From: "Lukas Smith" <smith@backendmedia.com> To: "'Tomas V.V.Cox'" <cox@idecnet.com>; "'Tomas V.V.Cox'" <cox@php.net>; <pear-cvs@lists.php.net> Sent: Sunday, June 08, 2003 11:39 AM Subject: RE: [PEAR-CVS] cvs: pear /DB/DB common.php > > From: Tomas V.V.Cox [mailto:cox@idecnet.com] > > Sent: Saturday, June 07, 2003 9:48 PM > > > > This patch is not correct, sorry, one stmt can be executed many times. > As > > well, there are other implications with free's arround many methods. I > > have > > to think more on it, I'll continue tomorrow. > > I hope I understood what you are trying to do there, but MDB has a > spezial method to free prepare queries. > > MDB::freePreparedQuery(); > > All of those (imho wacky) methods that prepare a query and execute need > to especially call this method at the end because the user never gets an > ID to later free. > Yes, that's the conclusion I got too. Definetly the freePreparedQuery() is the way to go for query(), limitQuery() and get*(). Tomas V.V.Cox

« previous php.pear.cvs (#10785) next »