Nicer way to access field

Started by Graeme Hinchliffeover 21 years ago1 messagesgeneral
Jump to latest
#1Graeme Hinchliffe
graeme.hinchliffe@zeninternet.co.uk

Hiya, (me again :) )

I am using in my C function the field names of a row. The way I am
currently pulling out this info is with:

idfield=strdup(trigdata->tg_relation->rd_att->attrs[0]->attname.data);

(this line should just pull out the name of the 1st field in a row).

I am guessing that this structure may (or may have already) changed as
development goes on. So I am wondering is there a nicer way that I
could access the fieldnames from within a C function that will be future
compatible?

Thanks again.

--
-----
Graeme Hinchliffe (BSc)
Core Internet Systems Designer
Zen Internet (http://www.zen.co.uk/)

Direct: 0845 058 9074
Main : 0845 058 9000
Fax : 0845 058 9005