cvs: php4 /ext/pgsql pgsql.c
| From: | Jouni Ahto | Date: | Sat, 09 Sep 2000 09:40:16 +0000 |
| Subject: | cvs: php4 /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1658@lists.php.net to get a copy of this message | ||
jah Sat Sep 9 02:40:16 2000 EDT
Modified files:
/php4/ext/pgsql pgsql.c
Log:
Fixed #6627. Wrong logic...
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.67 php4/ext/pgsql/pgsql.c:1.68
--- php4/ext/pgsql/pgsql.c:1.67 Tue Aug 15 18:03:20 2000
+++ php4/ext/pgsql/pgsql.c Sat Sep 9 02:40:16 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.67 2000/08/16 01:03:20 jah Exp $ */
+/* $Id: pgsql.c,v 1.68 2000/09/09 09:40:16 jah Exp $ */
#include <stdlib.h>
@@ -940,7 +940,8 @@
if (PQgetisnull(pgsql_result, Z_LVAL_PP(row), i)) {
if (result_type & PGSQL_NUM) {
add_index_unset(return_value, i);
- } else {
+ }
+ if (result_type & PGSQL_ASSOC) {
field_name = PQfname(pgsql_result, i);
add_assoc_unset(return_value, field_name);
}