Re: SPI_execute_plan(): how to make a Datum to insert type inet ?

From: Volkan YAZICI <yazicivo(at)ttmail(dot)com>
To: Alex Vinogradovs <AVinogradovs(at)Clearpathnet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SPI_execute_plan(): how to make a Datum to insert type inet ?
Date: 2008-03-19 19:13:40
Message-ID: 87prtq7cij.fsf@alamut.mobiliz.com.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 19 Mar 2008, Alex Vinogradovs <AVinogradovs(at)Clearpathnet(dot)com> writes:
> params[0] = DirectFunctionCall1(textin,
> CStringGetDatum(pstrdup("192.168.1.1")));

Should't you be using inet_in instead of textin?

Regards.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2008-03-19 19:16:36 Re: tsearch2 in postgresql 8.3.1 - invalid byte sequence for encoding "UTF8": 0xc3
Previous Message Richard Huxton 2008-03-19 18:48:20 Re: tsearch2 in postgresql 8.3.1 - invalid byte sequence for encoding "UTF8": 0xc3