From: | Brook Milligan <brook(at)biology(dot)nmsu(dot)edu> |
---|---|
To: | tgl(at)sss(dot)pgh(dot)pa(dot)us, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: understanding Datum -> char * -> Datum conversions |
Date: | 2000-05-24 22:29:22 |
Message-ID: | 200005242229.QAA25974@biology.nmsu.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Casting doesn't do it. Use text_out() to produce a null-terminated C
string from a text Datum, and use text_in() to create a new text Datum
after you've modified the string.
By the way, I know there are a bunch of macros for tranforming to and
from Datum, but whenever I use them I have to figure out again exactly
how to do it.
Is there some documentation on the set of macros and what they do (or
some other means of describing how one translates arguments and return
values between internal form and "useful" programming form)?
Thanks for your help.
Cheers,
Brook
From | Date | Subject | |
---|---|---|---|
Next Message | Patrick Welche | 2000-05-24 22:40:57 | Re: [HACKERS] |
Previous Message | Tom Lane | 2000-05-24 22:07:27 | Re: Serious problem within authentication subsystem in 7.0 |