From 7faaa41ec21868609c189d0963cfdd069820364c Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 17 Feb 2005 20:14:03 +0000 Subject: [PATCH] - MFH --- ext/msql/php_msql.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c index be195fcd3a..ee38f50d30 100644 --- a/ext/msql/php_msql.c +++ b/ext/msql/php_msql.c @@ -960,9 +960,14 @@ static void php_msql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) add_assoc_stringl(return_value, msql_field->name, data, data_len, should_copy); } } else { - /* - add_get_index_stringl(return_value, i, empty_string, 0, (void **) &pval_ptr, 1); - */ + /* NULL value. */ + if (result_type & MSQL_NUM) { + add_index_null(return_value, i); + } + + if (result_type & MSQL_ASSOC) { + add_assoc_null(return_value, msql_field->name); + } } } } -- 2.40.0