diff options
| author | Jouni Ahto <jah@php.net> | 2000-09-09 09:40:16 +0000 |
|---|---|---|
| committer | Jouni Ahto <jah@php.net> | 2000-09-09 09:40:16 +0000 |
| commit | 20fe0a568501bc8ec52f78cc3bf9a7c105e92b35 (patch) | |
| tree | 8a50270290695b1dfe2ab4da6a5b8267d57e9a89 /ext/pgsql/pgsql.c | |
| parent | 971f8b08811b1dfef47841dd63c3ce349959e64f (diff) | |
| download | php-git-20fe0a568501bc8ec52f78cc3bf9a7c105e92b35.tar.gz | |
Fixed #6627. Wrong logic...
Diffstat (limited to 'ext/pgsql/pgsql.c')
| -rw-r--r-- | ext/pgsql/pgsql.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index f65a80dee9..947fd2a009 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -940,7 +940,8 @@ static void php_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) 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); } |
