From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Leonardo Boet Sánchez <boet(at)gtm(dot)tel(dot)etecsa(dot)cu> |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: Problema con setof record |
Date: | 2005-08-29 20:32:56 |
Message-ID: | 20050829203256.GB14343@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On Mon, Aug 29, 2005 at 03:40:31PM -0400, Leonardo Boet Sánchez wrote:
> Buenas tardes..
>
> Cuando pongo select * from choferessel(25) as foo(id_persona integer, trabajador varchar);
>
> Esta da error: ERROR: wrong record type supplied in RETURN NEXT.
Prueba esto
select * from choferessel(25) as foo(id_persona integer, trabajador text);
Si no funciona, muestranos las definiciones de las tablas involucradas.
Si llegase a funcionar, es porque no hay un operador || que entregue
varchar. Lo que hay es
text || text -> text
Checa \do en psql.
--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"You knock on that door or the sun will be shining on places inside you
that the sun doesn't usually shine" (en Death: "The High Cost of Living")
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2005-08-29 20:43:13 | Re: Consultas Discos para servidor base de datos |
Previous Message | Alvaro Herrera | 2005-08-29 20:27:39 | Re: Recomendación para tablas con muchos registros. |