#21332 [NEW]: tableInfo performes hilierious call to the postgresql database
| From: | jkkn at tv2 dot dk | Date: | Thu, 02 Jan 2003 09:46:04 +0000 |
| Subject: | #21332 [NEW]: tableInfo performes hilierious call to the postgresql database | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-12008@lists.php.net to get a copy of this message | ||
From: jkkn@tv2.dk
Operating system: Linux
PHP version: 4.3.0
PHP Bug Type: PEAR related
Bug description: tableInfo performes hilierious call to the postgresql database
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 bug report at http://bugs.php.net/?id=21332&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21332&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21332&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21332&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21332&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21332&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21332&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21332&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21332&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21332&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21332&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21332&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21332&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21332&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21332&r=gnused