Re: Confused about a function returning SETOF

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ken(at)sunward(dot)org
Cc: "PostgreSQL pg-general List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Confused about a function returning SETOF
Date: 2006-03-22 04:12:12
Message-ID: 9858.1143000732@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Ken Winter" <ken(at)sunward(dot)org> writes:
> select lov_personinorganization_role_status('Student','Applicant');
> ERROR: set-valued function called in context that cannot accept a set

You need to write
select * from lov_personinorganization_role_status('Student','Applicant');

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Qingqing Zhou 2006-03-22 04:32:32 Re: PANIC: heap_update_redo: no block
Previous Message Tom Lane 2006-03-22 04:00:49 Re: How I can get the real data type result instead of