From: Guy Deleeuw <G.De_Leeuw@eurofer.be>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: C trigger problem : conversion of CString to Datum
Date: Sun, 21 Feb 2010 11:15:17 +0100
Message-ID: <4B8107B5.4010702@eurofer.be> (raw)
In-Reply-To: <942.1266680731@sss.pgh.pa.us>
References: <4B7FFA2C.3030001@eurofer.be>
<942.1266680731@sss.pgh.pa.us>
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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: G.De_Leeuw@eurofer.be, tgl@sss.pgh.pa.us
Subject: Re: C trigger problem : conversion of CString to Datum
In-Reply-To: <4B8107B5.4010702@eurofer.be>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox