Re: Best way to construct Datum out of a string? - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Best way to construct Datum out of a string?
Date
Msg-id 4DB8242B.3030805@enterprisedb.com
Whole thread Raw
In response to Best way to construct Datum out of a string?  (Yves Weißig <weissig@rbg.informatik.tu-darmstadt.de>)
Responses Re: Best way to construct Datum out of a string?  (Yves Weißig <weissig@rbg.informatik.tu-darmstadt.de>)
List pgsql-hackers
On 27.04.2011 17:06, Yves Weißig wrote:
> Hi,
>
> sadly, so far my search in the source code wasn't very successfull on
> this topic.
> So, how can I construct a Datum out of a string?

What kind of a Datum do you want it to be? What data type? See 
CStringGetDatum, or perhaps CStringGetTextDatum(). Or perhaps you want 
to call the input function of some other datatype, with InputFunctionCall.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Yves Weißig
Date:
Subject: Best way to construct Datum out of a string?
Next
From: Andrew Dunstan
Date:
Subject: Re: Best way to construct Datum out of a string?