Re: Best way to construct Datum out of a string?

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: weissig(at)rbg(dot)informatik(dot)tu-darmstadt(dot)de
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Best way to construct Datum out of a string?
Date: 2011-04-27 14:11:55
Message-ID: 4DB8242B.3030805@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-04-27 14:17:48 Re: Best way to construct Datum out of a string?
Previous Message Yves Weißig 2011-04-27 14:06:14 Best way to construct Datum out of a string?