From: | Carmen Gloria Sepulveda Dedes <csepulveda(at)atichile(dot)com> |
---|---|
To: | pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx |
Subject: | [Pgsql-ayuda] Error en Funcion |
Date: | 2003-08-25 13:18:16 |
Message-ID: | 3F4A0C97.DDA7CC31@atichile.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Víctor Antequera Peña | 2003-08-25 13:34:27 | Re: [Pgsql-ayuda] Llamar una funcion |
Previous Message | Alvaro Herrera | 2003-08-25 12:23:31 | Re: [Pgsql-ayuda] [pgsql-ayuda]Diferencia entre coneccion por socket y tcp/ip |