DB_Result::tableinfo() bugfix

From: Date: Sun, 22 Sep 2002 16:11:45 +0000
Subject: DB_Result::tableinfo() bugfix
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9316@lists.php.net to get a copy of this message
Hi 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! Yours Mike

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