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

From Volkan YAZICI
Subject Re: SPI_execute_plan(): how to make a Datum to insert type inet ?
Date
Msg-id 87prtq7cij.fsf@alamut.mobiliz.com.tr
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
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: Alex Vinogradovs
Date:
Subject: Re: SPI_execute_plan(): how to make a Datum to insert type inet ?
Next
From: Tom Lane
Date:
Subject: Re: tsearch2 in postgresql 8.3.1 - invalid byte sequence for encoding "UTF8": 0xc3