>From: [email protected]
>....
>CREATE OR REPLACE FUNCTION agregar_item_menu(integer, integer, integer, 
>bpchar, bpchar)
>  RETURNS serial AS
>$BODY$
>BEGIN
>INSERT INTO menu (id_padre, posicion, nivel, titulo, pagina) VALUES 
>($1,$2,$3,$4,$5)
>.....
>pero me da el siguiente error al ejecutar la función
>ERROR: query has no destination for result data
>SQL state: 42601
>Context: PL/pgSQL function "agregar_item_menu" line 2 at SQL statement


umnnn, lo único que veo mal, es que no le veo un "punto y coma" al final de la 
lína "INSERT" ... 
o es un error cuando pegaste la función ?

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx--
TIP 6: ¿Has buscado en los archivos de nuestra lista de correo?
               http://archives.postgresql.org/pgsql-es-ayuda

Responder a