cvs: pear(MDB_1) /MDB/MDB pgsql.php
| From: | Lukas Smith | Date: | Fri, 12 Mar 2004 14:17:36 +0000 |
| Subject: | cvs: pear(MDB_1) /MDB/MDB pgsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17339@lists.php.net to get a copy of this message | ||
lsmith Fri Mar 12 09:17:36 2004 EDT
Modified files: (Branch: MDB_1)
/pear/MDB/MDB pgsql.php
Log:
- moving back to pg_fetch_array since pg_fetch_assoc requires php 4.3
http://cvs.php.net/diff.php/pear/MDB/MDB/pgsql.php?r1=1.62.4.18&r2=1.62.4.19&ty=u
Index: pear/MDB/MDB/pgsql.php
diff -u pear/MDB/MDB/pgsql.php:1.62.4.18 pear/MDB/MDB/pgsql.php:1.62.4.19
--- pear/MDB/MDB/pgsql.php:1.62.4.18 Sat Feb 28 05:40:19 2004
+++ pear/MDB/MDB/pgsql.php Fri Mar 12 09:17:36 2004
@@ -42,7 +42,7 @@
// | Author: Paul Cooper <pgc@ucecom.com> |
// +----------------------------------------------------------------------+
//
-// $Id: pgsql.php,v 1.62.4.18 2004/02/28 10:40:19 quipo Exp $
+// $Id: pgsql.php,v 1.62.4.19 2004/03/12 14:17:36 lsmith Exp $
require_once('MDB/Common.php');
@@ -1269,7 +1269,7 @@
}
if ($fetchmode & MDB_FETCHMODE_ASSOC) {
- $row = @pg_fetch_assoc($result, $rownum, PGSQL_ASSOC);
+ $row = @pg_fetch_array($result, $rownum, PGSQL_ASSOC);
if (is_array($row) && $this->options['optimize'] ==
'portability') {
$row = array_change_key_case($row, CASE_LOWER);
}