error in SELECT from store procedure - Mailing list pgsql-general

From Ivan Pavlov
Subject error in SELECT from store procedure
Date
Msg-id 434A8C1D.6080707@ratola.bg
Whole thread Raw
Responses Re: error in SELECT from store procedure  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
I have a store procedure which returns a record; the query is defined as:

select * from spec_proc.view_empl_1('bg',2) AS (f1 varchar, f2 varchar,
f3 date, f4 varchar, f5 varchar,f6 varchar,f7 varchar, f8 varchar, f9
int, f10 varchar, f11 varchar, f12 varchar, f13 int, f14 varchar, f15
date, f16 date)

I recieve the following error:

ERROR:  record "employee" is not assigned yet
DETAIL:  The tuple structure of a not-yet-assigned record is indeterminate.

The record "employee" is the record returned by the store procedure.
It is created after all other data are assigned to variables.
Any ideas what might cause this?

I.P.

pgsql-general by date:

Previous
From: Florian Ledoux
Date:
Subject:
Next
From: Venki@insoft.com
Date:
Subject: Too many clients connected