Re: call stored function from ecpg w/cursor

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Andrew Jarcho <ajarcho(at)nyc(dot)rr(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: call stored function from ecpg w/cursor
Date: 2007-05-01 14:05:59
Message-ID: 20070501140559.GA4094@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Tue, May 01, 2007 at 03:03:58AM -0400, Andrew Jarcho wrote:
> Thank you for your continued help. A stripped down but fully
> (mal)functioning version of the code is attached. The error, according
> to the logfile ecpg_debug.log, occurs in the file callProcsViaC.pgc and
> is clearly marked there. A lot of the included code is just for
> completeness/reference.

The ms_getInvolvedInCase() function returns a composite type.
Instead of

EXEC SQL DECLARE c_1 CURSOR FOR SELECT ms_getInvolvedInCase(:mstsCaseID);

try

EXEC SQL DECLARE c_1 CURSOR FOR SELECT * FROM ms_getInvolvedInCase(:mstsCaseID);

--
Michael Fuhr

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Andrew Jarcho 2007-05-01 22:26:35 Re: call stored function from ecpg w/cursor
Previous Message Andrew Jarcho 2007-05-01 07:03:58 Re: call stored function from ecpg w/cursor