Re: Cast de Parametros?

From: Patricio Muñoz <patricio(dot)munoz(at)cmet(dot)net>
To: Miguel Miranda <mmiranda(at)123(dot)com(dot)sv>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Cast de Parametros?
Date: 2005-06-15 21:53:31
Message-ID: 42B0A35B.70901@cmet.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Miguel Miranda escribió:
> Saludos,
> Tengo el siguiente problema con los parametros recibidos en una funcion,
> la he trasladado integramente de un servidor postgres 7.3 a un 8.0, en
> 7.3 funciona sin problema
>
> CREATE OR REPLACE FUNCTION provisonar_pines(varchar, integer, numeric,
> date, integer)
> RETURNS integer AS
> $BODY$
> DECLARE
>
> --parametos
> pin alias for $1;
> idplan alias for $3;
> monto alias for $4;
> fecha_exp_fija alias for $5;
> promptid alias for $6;
>
> BEGIN
> .....
>
>
> cuando lo ejecuto esto es lo que obtengo
>
> select * from provisionar_pines('3251724967',1,3.00,'2006-06-15',1350);
>
> ERROR: function provisionar_pines("unknown", integer, numeric,
> "unknown", integer) does not exist
> HINT: No function matches the given name and argument types. You may
> need to add explicit type casts.
>
> Antes no aparecian esos "unknown", como deberia hacer el llamado?
>
> ---
> Miguel Miranda

Envia el cuerpo de la funcion, tal vez ahi este el problema :-)
Donde utilizas el parametro $2 ?

saludos

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Miguel Miranda 2005-06-15 21:58:36 Re: Cast de Parametros?
Previous Message Alvaro Herrera 2005-06-15 21:49:46 Re: Cast de Parametros?