Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Mysql
Mysql.mysql_result

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()