From: | Graeme Hinchliffe <graeme(dot)hinchliffe(at)zeninternet(dot)co(dot)uk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Nicer way to access field |
Date: | 2004-09-02 15:43:07 |
Message-ID: | 1094139787.6791.48.camel@office-137.zen.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2004-09-02 15:54:45 | Re: Display of text fields |
Previous Message | operationsengineer1 | 2004-09-02 15:41:54 | Re: pgAccess via ssh? |