[Pgsql-ayuda] Error en Funcion
Carmen Gloria Sepulveda Dedes
csepulveda@atichile.com
Mon, 25 Aug 2003 09:18:16 -0400
Hola.
He instalado Postgres 7.3.3 sobre sparc solaris 9.
Para hacer una pequena prueba inicial, cree un usuario y
este usuario creo una tabla y una funcion:
create function insert_msg(smallint,integer,real,double
precision,varchar)
returns integer As
' insert into mt_catalog.message
values ($1,$2,$3,$4,$5);
select 1;
' LANGUAGE SQL;
Al intentar ejecutarlo, me arroja el siguiente error:
testdb=# select insert_msg(1,2,3,4,'xx');
ERROR: Function insert_msg(integer, integer, integer, integer,
"unknown") does not exist
Unable to identify a function that satisfies the given argument
types
You may need to add explicit typecasts
Supuse que tenia un error en el argumento varchar, asi que quise
cambiarlo,
pero al hacer el drop, me dio el error:
testdb=# drop function insert_msg
testdb-# ;
ERROR: parser: parse error at end of input
Alguien sabe a que se deben estos dos errores o que puedo estar haciendo
mal?
Gracias.
CGS