Re: Funcion no funciona

From: Ing(dot) Eris J(dot) Gómez <eris_jose(at)hotmail(dot)com>
To: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Funcion no funciona
Date: 2009-08-14 17:19:36
Message-ID: COL116-DS19AE6314B7B8FE8526FABD8E020@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Cambie los parametros por tipo varchar, pero no funciona todavia.

gracias

--------------------------------------------------
From: "Alvaro Herrera" <alvherre(at)alvh(dot)no-ip(dot)org>
Sent: Friday, August 14, 2009 12:14 PM
To: "Ing. Eris J. Gómez" <eris_jose(at)hotmail(dot)com>
Cc: <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: [pgsql-es-ayuda] Funcion no funciona

> Ing. Eris J. Gómez escribió:
>> Hola a todos.
>>
>> Escribi una funcion y no trabaja correctamente. Que estoy haciendo mal?
>> *- A continuacion el Script.
>>
>> ---
>> CREATE OR REPLACE FUNCTION "public"."cxp_balfactura" (x_codcia char,
>> x_suplidor char, x_factura char, x_monto numeric, x_moneda integer)
>> RETURNS numeric AS
>
> Yo probaría declarando esos parámetros como varchar, no char.
>
>
> Regla general: jamás uses char.
>
> --
> Alvaro Herrera
> http://www.amazon.com/gp/registry/CTMLCN8V17R4
> Thou shalt study thy libraries and strive not to reinvent them without
> cause, that thy code may be short and readable and thy days pleasant
> and productive. (7th Commandment for C Programmers)
>

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Ing. Eris J. Gómez 2009-08-14 17:53:32 Re: Funcion no funciona
Previous Message Ing. Eris J. Gómez 2009-08-14 17:17:02 Re: [pgsql-es-ayuda] Funcion que no funciona?.... que error te dá?