Re: C trigger problem : conversion of CString to Datum

Поиск
Список
Период
Сортировка
От Guy Deleeuw
Тема Re: C trigger problem : conversion of CString to Datum
Дата
Msg-id 4B8107B5.4010702@eurofer.be
обсуждение исходный текст
Ответ на Re: C trigger problem : conversion of CString to Datum  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Hi Tom

Many thanks for your answer, all work fine now :-)

Regards
Guy

Le 20/02/10 16:45, Tom Lane a écrit :
> Guy Deleeuw<G.De_Leeuw@eurofer.be>  writes:
>
>> I cannot convert properly a cstring to a Datum :
>>
> Well, CStringGetDatum would be the proper thing to use if you meant to
> produce a Datum of type "cstring".  But what you need here is a Datum
> of the same type as the target column, which evidently isn't cstring.
> Most likely you need to convert the string to type text.
>
>             regards, tom lane
>

В списке pgsql-admin по дате отправления:

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: pg_dump/restore problems
Следующее
От: Andrzej Zawadzki
Дата:
Сообщение: Re: upgrading, but learned about pg_dumpall too late