Re: SPI_execute_plan(): how to make a Datum to insert type inet ? - Mailing list pgsql-general

From Alex Vinogradovs
Subject Re: SPI_execute_plan(): how to make a Datum to insert type inet ?
Date
Msg-id 1205954395.9864.18.camel@localhost
Whole thread Raw
In response to SPI_execute_plan(): how to make a Datum to insert type inet ?  (Alex Vinogradovs <AVinogradovs@Clearpathnet.com>)
List pgsql-general
That solved my problem. Thanks!


On Wed, 2008-03-19 at 21:13 +0200, Volkan YAZICI wrote:
> On Wed, 19 Mar 2008, Alex Vinogradovs <AVinogradovs@Clearpathnet.com> writes:
> > params[0] = DirectFunctionCall1(textin,
> > CStringGetDatum(pstrdup("192.168.1.1")));
>
> Should't you be using inet_in instead of textin?
>
>
> Regards.

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: tsearch2 in postgresql 8.3.1 - invalid byte sequence for encoding "UTF8": 0xc3
Next
From: Volkan YAZICI
Date:
Subject: Re: SPI_execute_plan(): how to make a Datum to insert type inet ?