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

From: Alex Vinogradovs <AVinogradovs(at)Clearpathnet(dot)com>
To: Volkan YAZICI <yazicivo(at)ttmail(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:19:55
Message-ID: 1205954395.9864.18.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(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

Browse pgsql-general by date

  From Date Subject
Next Message Leon Mergen 2008-03-19 19:39:54 Foreign keys to inherited tables
Previous Message Erik Jones 2008-03-19 19:19:04 Re: table references with partitioning