Lists: | pgsql-es-ayuda |
---|
From: | "Daniel Hernandez" <breydan(at)excite(dot)com> |
---|---|
To: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: funcion que use dos tipos distintos de retorno |
Date: | 2007-06-05 22:33:27 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-es-ayuda |
Disculpa la intromisin, pero eso no es polimorfismo, es sobre-carga de funciones.Daniel Hernndez.San Diego, CA."The more you learn, more you earn".--- On Tue 06/05, Espartano < espartano(dot)mail(at)gmail(dot)com > wrote:
From: Espartano [mailto: espartano(dot)mail(at)gmail(dot)com]To: mario(dot)vargas(dot)careaga(at)gmail(dot)comCc: pgsql-es-ayuda(at)postgresql(dot)orgDate: Tue, 5 Jun 2007 17:18:00 -0500Subject: Re: [pgsql-es-ayuda] funcion que use dos tipos distintos de retornoOn 6/5/07, mario vargas careaga wrote:> tengo esta funcion para el primer caso si la opcion es uno me hace el select> y me muestra el resultado,cuando hago opcion 2 me da error se supone porqeu> no necesito qeu me devuleva ningun valor hubiera bastado con ponerle un void> al returns y punto pero la opcion 1 ya no me daria resultado poniendo solo> record sin el setof no me sirve porq mi consulta arroja mas de una row como> puedo hacer para que me acepte los dos tipos de retorno que necesito?En programacion estructurada eso es completamente *imposible*, no sesi tu problema se pueda solucionar usando PL/java, me parece que si,pero te repito no estoy seguro, solo lo menciono porque es POO ypodras utilizar polimorfismo para hacer lo que
quieres.-- "Linux is for people who hate Windows, BSD is for people who love UNIX"."Social Engineer -> Because there is no patch for human stupidity""The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ;mount ; fsck ; more ; yes ; umount ; sleep.""Documentation is like sex: when it is good, it is very, very good;and when it is bad, it is better than nothing."---------------------------(fin del mensaje)---------------------------TIP 8: explain analyze es tu amigo
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
From: | Espartano <espartano(dot)mail(at)gmail(dot)com> |
---|---|
To: | breydan(at)excite(dot)com |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: funcion que use dos tipos distintos de retorno |
Date: | 2007-06-05 22:40:37 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Lists: | pgsql-es-ayuda |
On 6/5/07, Daniel Hernandez <breydan(at)excite(dot)com> wrote:
>
> Disculpa la intromisión, pero eso no es polimorfismo, es sobre-carga de funciones.
>
:S Sorry, la POO no es mi fuerte, de hecho no me agrada mucho que digamos.
--
"Linux is for people who hate Windows, BSD is for people who love UNIX".
"Social Engineer -> Because there is no patch for human stupidity"
"The Unix Guru's View of Sex unzip ; strip ; touch ; grep ; finger ;
mount ; fsck ; more ; yes ; umount ; sleep."
"Documentation is like sex: when it is good, it is very, very good;
and when it is bad, it is better than nothing."