Re: C trigger problem : conversion of CString to Datum - Mailing list pgsql-admin

From Tom Lane
Subject Re: C trigger problem : conversion of CString to Datum
Date
Msg-id 942.1266680731@sss.pgh.pa.us
Whole thread Raw
In response to C trigger problem : conversion of CString to Datum  (Guy Deleeuw <G.De_Leeuw@eurofer.be>)
Responses Re: C trigger problem : conversion of CString to Datum
List 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 by date:

Previous
From: Guy Deleeuw
Date:
Subject: C trigger problem : conversion of CString to Datum
Next
From: Nilesh Govindarajan
Date:
Subject: Backups