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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Best way to construct Datum out of a string?
Дата
Msg-id 4DB8242B.3030805@enterprisedb.com
обсуждение исходный текст
Ответ на Best way to construct Datum out of a string?  (Yves Weißig <weissig@rbg.informatik.tu-darmstadt.de>)
Ответы Re: Best way to construct Datum out of a string?  (Yves Weißig <weissig@rbg.informatik.tu-darmstadt.de>)
Список 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 по дате отправления:

Предыдущее
От: Yves Weißig
Дата:
Сообщение: Best way to construct Datum out of a string?
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Best way to construct Datum out of a string?