Re: Re: c function - Mailing list pgsql-general

From Richard Harvey Chapman
Subject Re: Re: c function
Date
Msg-id Pine.LNX.4.10.10009221414160.559-100000@smirk.3gfp.com
Whole thread Raw
In response to Re: c function  ("K Parker" <kparker@eudoramail.com>)
List pgsql-general
On Fri, 22 Sep 2000, K Parker wrote:

> > Question: Why isn't 12 printed after the second SELECT statement?
>
> It's the well-known (?) problem that if any function parameter is
> NULL, they are all set to NULL.  IIRC someone is working on fixing
> this...

a big thanks to you and Tom for the updates.

a note though: there are no problems with the parameters that I can see.
They're passed correctly to the c function, it's just the return type
that's messed up.

I suppose we'll just have to use 'NULL'.

BTW Is it possible to use a c-function with a prototype like the following
in postgres?

int myfunc (int id, ...);


R.



pgsql-general by date:

Previous
From: Nelson
Date:
Subject: [SQL] how to store a query, that results in a table
Next
From: Cristóvão Dalla Costa
Date:
Subject: why pg_dump eats so much memory?