Re: How can I retrieve a function result? - Mailing list pgsql-general

From Joachim Wieland
Subject Re: How can I retrieve a function result?
Date
Msg-id 20060613004016.GA4255@mcknight.de
Whole thread Raw
In response to How can I retrieve a function result?  ("Luis Alberto Pérez Paz" <midriasis@gmail.com>)
Responses Re: How can I retrieve a function result?
List pgsql-general
Luis,

On Mon, Jun 12, 2006 at 06:24:24PM -0500, Luis Alberto Pérez Paz wrote:
> res = PQexecParams ( conn, "select myFunction($1,$2,$3)" , 3, NULL,
> paramValues, paraLenghts, paramFormats, resultFormat);

> It's works fine, however I dont know how can I retrieve the result that
> return the FUNCTION "myFunction". "myFunction" is a postgres FUNCTION which
> returns a INT.

libpq functions for retrieving query results are described here:

http://www.postgresql.org/docs/8.1/static/libpq-exec.html#LIBPQ-EXEC-SELECT-INFO
Have you tried them and do you have a special problem with one of those? If
so, please give more detail.

Getting the result of a function does not differ from getting the result of
a regular select of a table or view.


Joachim


pgsql-general by date:

Previous
From: "Luis Alberto Pérez Paz"
Date:
Subject: How can I retrieve a function result?
Next
From: John Tregea
Date:
Subject: Re: Help with storing spatial (map coordinates) data?