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) -- TIP 9: visita nuestro canal de IRC #postgresql-es en irc.freenode.net