From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Ismael (dot)(dot)(dot)(dot)" <ismaelpsp(at)hotmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: issues with java driver setDate() on function call |
Date: | 2008-08-03 04:21:20 |
Message-ID: | 15143.1217737280@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Ismael ...." <ismaelpsp(at)hotmail(dot)com> writes:
> I have a function declared as follows
> CREATE OR REPLACE FUNCTION insertaegreso(usuario1 integer, importepago1 numeric, fechapago1 DATE, concepto1 character varying, tipopagonomina1 character varying, comentarios1 character varying)
> RETURNS integer AS....implementation....
> but when I try to call it using java's PreparedStatement pst;
> I get this error, (note: "no existe la funcin" means "the function .... doesn't exists")
> org.postgresql.util.PSQLException: ERROR: no existe la funcin insertaegreso(integer, double precision, unknown, character varying, character varying, character varying)
Actually I think your problem is with the *second* parameter. There is
no implicit cast from double precision to numeric.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Manoj Patwardhan | 2008-08-03 05:27:22 | Re: Fresh install on Mac OS 10.5.4 |
Previous Message | Tom Lane | 2008-08-03 04:17:33 | Re: Fresh install on Mac OS 10.5.4 |