| From: | Mr Weinbach, Larry <larryweinbach(at)yahoo(dot)com> |
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Using a RETURN NEXT |
| Date: | 2003-06-10 21:01:33 |
| Message-ID: | 20030610210133.70723.qmail@web12905.mail.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Thanks a lot Gaetano, Joe
Now, it is working.
--- Mendola Gaetano <mendola(at)bigfoot(dot)com> escribió: >
From: "Mr Weinbach, Larry" <larryweinbach(at)yahoo(dot)com>
>
> > But at execution time I am getting thi error :
> >
> > WARNING: Error occurred while executing PL/pgSQL
> > function word_case
> > WARNING: line 5 at return next
> > ERROR: Set-valued function called in context that
> > cannot accept a set
> >
> > I also tried using my own type defined but I got
> the
> > same error.
> >
> > Any hint or idea will be appreciated ...
>
> I guess that you are calling that function in this
> way:
> #select word_case();
>
> that function is a "table function" so you should
> use it like a table:
>
> #select * from word_case();
>
>
> Regards
> Gaetano Mendola
>
>
>
>
>
>
>
>
_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hilary Forbes | 2003-06-11 08:35:16 | Record size |
| Previous Message | Rod Taylor | 2003-06-10 19:30:29 | Re: how to determine array size |