bugfix: DB_Result::tableInfo() for pgsql

From: Date: Sun, 22 Sep 2002 19:00:38 +0000
Subject: bugfix: DB_Result::tableInfo() for pgsql
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9317@lists.php.net to get a copy of this message
Hi Here's a small diff for DB/pgsql.php 746c746 < if (is_resource($id)) { --- > if (is_string ($result) && is_resource($id)) { see attachment for complete patch. The problem is that the ressource is freed which makes it impossible to use $result- >tableinfo() and right after it $result->fetchRow(), which could be quite useful if you want to create e.g. a html-table with all db-table info and data from any given result- ressource. In the pear-general list archives i found someone having exactly this problem. http://marc.theaimsgroup.com/?l=pear-general&m=103190883932124&w=2 My code change should do what the original comment above the if() clause says. I hope the patch is ok like this. Yours Mike

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