#21332 [Opn->Fbk]: tableInfo performes hilierious call to the postgresql database
| From: | kalowsky@php.net | Date: | Wed, 08 Jan 2003 23:19:51 +0000 |
| Subject: | #21332 [Opn->Fbk]: tableInfo performes hilierious call to the postgresql database | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12192@lists.php.net to get a copy of this message | ||
ID: 21332
Updated by: kalowsky@php.net
Reported By: jkkn@tv2.dk
-Status: Open
+Status: Feedback
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.3.0
New Comment:
what exactly is the problem?
Previous Comments:
------------------------------------------------------------------------
[2003-01-02 03:46:03] jkkn@tv2.dk
Patch below fixes the problem:
--- pgsql.php Thu Jan 2 10:32:58 2003
+++ pgsql.php.fixed Thu Jan 2 10:32:47 2003
@@ -700,7 +700,7 @@
// table without a resultset
if (is_string($result)) {
- $id = pg_exec($this->connection,"SELECT * FROM $result");
+ $id = pg_exec($this->connection,"SELECT * FROM $result
LIMIT 0");
if (empty($id)) {
return $this->pgsqlRaiseError();
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21332&edit=1