Re: C trigger problem : conversion of CString to Datum

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: C trigger problem : conversion of CString to Datum
Дата
Msg-id 942.1266680731@sss.pgh.pa.us
обсуждение исходный текст
Ответ на C trigger problem : conversion of CString to Datum  (Guy Deleeuw <G.De_Leeuw@eurofer.be>)
Ответы Re: C trigger problem : conversion of CString to Datum  (Guy Deleeuw <G.De_Leeuw@eurofer.be>)
Список pgsql-admin
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 по дате отправления:

Предыдущее
От: Guy Deleeuw
Дата:
Сообщение: C trigger problem : conversion of CString to Datum
Следующее
От: Nilesh Govindarajan
Дата:
Сообщение: Backups