Search Postgresql Archives

Re: issues with java driver setDate() on function call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ismael ...." <ismaelpsp@xxxxxxxxxxx> 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 función" means "the function .... doesn't exists")
> org.postgresql.util.PSQLException: ERROR: no existe la función 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux