From: Andrey Hristov Date: Sun, 9 Oct 2005 17:03:01 +0000 (+0000) Subject: add charsetnr and length to the object returned. this is kind of bug X-Git-Tag: php-5.1.0RC2~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24af08eb80081b8cf5eb6dec401b9006eaf69888;p=php add charsetnr and length to the object returned. this is kind of bug because fetch_fields() and fetch_field() return that info and fetch_field_direct() does not --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index b9720e5189..66e4561c7b 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -802,6 +802,8 @@ PHP_FUNCTION(mysqli_fetch_field_direct) add_property_string(return_value, "orgtable",(field->org_table ? field->org_table : ""), 1); add_property_string(return_value, "def",(field->def ? field->def : ""), 1); add_property_long(return_value, "max_length", field->max_length); + add_property_long(return_value, "length", field->length); + add_property_long(return_value, "charsetnr", field->charsetnr); add_property_long(return_value, "flags", field->flags); add_property_long(return_value, "type", field->type); add_property_long(return_value, "decimals", field->decimals);