1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00

@- NULL values are now preserved in the return value of mysql_fetch_array()

@  and mysql_fetch_object(). (Andrei)
This commit is contained in:
Andrei Zmievski
2000-05-15 13:46:37 +00:00
parent 10503a3b92
commit fe24b820be
+5 -2
View File
@@ -1317,8 +1317,11 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type)
add_assoc_stringl(return_value, mysql_field->name, data, data_len, should_copy);
}
} else {
/* NULL field, don't set it */
/* add_get_index_stringl(return_value, i, empty_string, 0, (void **) &pval_ptr); */
/* NULL value. */
if (result_type & MYSQL_NUM)
add_index_unset(return_value, i);
else
add_assoc_unset(return_value, mysql_field->name);
}
}
}