On 02-03-2010 13:03:26 +0100, Guillaume Yziquel wrote:
Guillaume Yziquel a écrit :
Fabian Groffen a écrit :
I'm looking for equivalents of fname and fnumber methods in MAPI. Couldn't find an equivalent. So, is there a way, when you get the result of a query, to get the names of the fields in the result? Did you check mapi_get_field_count and mapi_get_table, mapi_get_name, mapi_get_type and mapi_get_len?
Ok, I admit they are actually not documented at all, not even in the code.
Yes. I discovered them late last night by looking at the php bindings. Page 225 of m5manual.pdf. For instance
The MAL statement 'io.print(1);' returns a table, with one column, but whose only field does not have a name.
What should I choose a MAL statement to be, if I want a similar result, but with a named field?
SQL: select 1; Using MAL you cannot expect to get resultsets, like SQL does. Hence, I'd say: don't use it.