Convert raw fields into Datum

Started by sri harshaover 11 years ago2 messagesgeneral
Jump to latest
#1sri harsha
sriharsha9992@gmail.com

Hi,

I have the raw fields of a particular row in char * . Now my requirement
is to convert these value into datum * . How should i go about this ? Does
converting into datum depends on the type of the field too ?

-- Harsha

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: sri harsha (#1)
Re: Convert raw fields into Datum

sri harsha <sriharsha9992@gmail.com> writes:

I have the raw fields of a particular row in char * . Now my requirement
is to convert these value into datum * . How should i go about this ? Does
converting into datum depends on the type of the field too ?

Yes. You are probably looking for BuildTupleFromCStrings().

regards, tom lane

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general