Pike v8.1 release 6

Method Mysql.mysql()->Result()->fetch_field()


Method fetch_field

int|mapping(string:mixed) fetch_field()

Description

Return specification of the current field.

Returns a mapping with information about the current field, and advances the field cursor one step. Returns 0 (zero) if there are no more fields.

The mapping contains the same entries as those returned by Mysql.mysql->list_fields(), except that the entry "default" is missing.

Note

This function is usually not enabled. To enable it SUPPORT_FIELD_SEEK must be defined when compiling the mysql-module.

See also

fetch_fields(), field_seek(), Mysql.mysql->list_fields()