]> granicus.if.org Git - php/commitdiff
add charsetnr and length to the object returned. this is kind of bug
authorAndrey Hristov <andrey@php.net>
Sun, 9 Oct 2005 17:03:01 +0000 (17:03 +0000)
committerAndrey Hristov <andrey@php.net>
Sun, 9 Oct 2005 17:03:01 +0000 (17:03 +0000)
because fetch_fields() and fetch_field() return that info and
fetch_field_direct() does not

ext/mysqli/mysqli_api.c

index b9720e5189d024e5f2b52595168de175d5460913..66e4561c7bb319bea859d405bd0a222178c3a405 100644 (file)
@@ -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);