Re: Problema con Funcion

From: Jaime Casanova <systemguards(at)gmail(dot)com>
To: masotelof(at)yahoo(dot)com(dot)mx
Cc: Ayuda Postgres <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Problema con Funcion
Date: 2005-04-16 20:10:15
Message-ID: c2d9e70e050416131012c56ba@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

On 4/16/05, Marco Aurelio Sotelo Figueroa <masotelof(at)yahoo(dot)com(dot)mx> wrote:
> Estoy usando la version 8.0
> y el mensage es ERROR: $8 is declared Constant
>
>

CREATE FUNCTION funcion_prueba(param int) RETURNS INT AS
$$
BEGIN
param:=4;

RETURN 1;
END;
$$
LANGUAGE 'plpgsql' STABLE CALLED ON NULL INPUT SECURITY INVOKER;

----

template1=# \c uescc
You are now connected to database "uescc".
uescc=# \i func.sql
DROP FUNCTION
CREATE FUNCTION
uescc=# select funcion_prueba(3);
ERROR: "$1" is declared CONSTANT
CONTEXT: compile of PL/pgSQL function "funcion_prueba" near line 2

atentamente,
Jaime Casanova

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Andres Serrano 2005-04-17 03:29:46 Mas de 32 Parametros??
Previous Message Jaime Casanova 2005-04-16 20:04:43 Re: Problema con Funcion