Re: DB_Result::tableinfo() bugfix

From: Date: Sun, 22 Sep 2002 20:15:06 +0000
Subject: Re: DB_Result::tableinfo() bugfix
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9318@lists.php.net to get a copy of this message
On Sun Sep 22, 2002 at 04:1145PM +0000, Michael Kefeder wrote: > The original code is at the end of the method in DB/pgsql.php is: > > // free the result only if we were called on a table > if (is_resource($id)) { > @pg_freeresult($id); > } > > > but it should be (like the comment correctly says) > > // free the result only if we were called on a table > if (is_string ($result) && is_resource($id)) { > @pg_freeresult($id); > } > > else one cannot use the result for fetching data after getting the tableinformation, > because the result_id is destroyed! Your patch has been commited to CVS. -- - Martin Martin Jansen http://martinjansen.com/

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