From: Robert J. Sanford, Jr. <rsanford@nolimitsystems.com>
To: pgsql-sql@postgresql.org
Subject: result sets from functions...
Date: Tue, 14 Aug 2001 21:35:56 -0500
Message-ID: <HOEFIONAHHKFEFENBMNOEENNCAAA.rsanford@nolimitsystems.com> (raw)
i'm reading the postgres documentation and i'm specifically
interested in creating stored procedures so that i can keep
as much of the business logic in the database as possible.
while reading 13.1.3 (SQL Functions on Composite Types) in
the Programmer's Guide i come across the phrase...
"When calling a function that returns a row, we cannot
retrieve the entire row. We must either project an
attribute out of the row or pass the entire row into
another function.
SELECT name(new_emp()) AS nobody;"
how does this affect calling functions as stored procedures
from the jdbc driver and getting a result set returned bac?
am i allowed to use Connection.PrepareCall() to create a
CallableStatement against a postgres function and receive a
ResultSet that can be iterated over?
thanks!
rjsjr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rsanford@nolimitsystems.com
Subject: Re: result sets from functions...
In-Reply-To: <HOEFIONAHHKFEFENBMNOEENNCAAA.rsanford@nolimitsystems.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox