From: | "Ken Winter" <ken(at)sunward(dot)org> |
---|---|
To: | "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "'PostgreSQL pg-general List'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Confused about a function returning SETOF |
Date: | 2006-03-22 20:34:34 |
Message-ID: | 002d01c64df0$099dbca0$6706a8c0@kenxp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Well, duh! Thank you. I could have stared at it for hours without seeing
it...
> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: Tuesday, March 21, 2006 11:12 PM
> To: ken(at)sunward(dot)org
> Cc: PostgreSQL pg-general List
> Subject: Re: [GENERAL] Confused about a function returning SETOF
>
> "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
From | Date | Subject | |
---|---|---|---|
Next Message | Guy Fraser | 2006-03-22 20:55:22 | Re: Advantages of PostgreSQL over MySQL 5.0 |
Previous Message | Janning Vygen | 2006-03-22 20:29:12 | Re: Updating database structure |