Interbase module patch
| From: | Daniela Mariaschi | Date: | Fri, 01 Mar 2002 13:38:27 +0000 |
| Subject: | Interbase module patch | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-80558@lists.php.net to get a copy of this message | ||
Following up from bug #15602, I have written a patch to return NULL and
empty fields from ibase_fetch_row() and ibase_fetch_object().
The current implementation of those two functions skips (ignores) empty or
NULL fields, returning rows of different lenghts in a result set, depending
of the number of NULL fields in each row.
Daniela Mariaschi
Index: interbase.c
===================================================================
RCS file: /repository/php4/ext/interbase/interbase.c,v
retrieving revision 1.75
diff -r1.75 interbase.c
2109c2109
< break;
---
> break;
2119c2119,2125
< } /* if not null */
---
> } else {
> if (fetch_type & FETCH_ARRAY) {
> add_index_null(return_value, i);
> } else {
> add_property_null(return_value,
var->aliasname);
> }
> }