error in SELECT from store procedure

From: Ivan Pavlov <i(dot)pavlov(at)ratola(dot)bg>
To: pgsql-general(at)postgresql(dot)org
Subject: error in SELECT from store procedure
Date: 2005-10-10 15:43:25
Message-ID: 434A8C1D.6080707@ratola.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard_D_Levine 2005-10-10 15:59:02 Re: Oracle buys Innobase
Previous Message Florian Ledoux 2005-10-10 15:41:41