Re: mi primer trigger

From: Ever Daniel Barreto Rojas <ebarreto(at)nexusit(dot)com(dot)py>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: mi primer trigger
Date: 2007-10-16 18:53:18
Message-ID: 1091530933.20071016145318@nexusit.com.py
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

miguel:

El 16/10/2007 a las 02:36 p.m., escribiste:
> CREATE OR REPLACE FUNCTION "public"."salida_hilos" () RETURNS trigger AS
> $body$
> BEGIN
> update vihilos2 set peso_salida = peso_salida + new.peso_neto
> where idvihilo = new.idvihilo And itemvi = new.itemvi;
> RETURN NULL;
> END;
> $body$
> LANGUAGE 'plpgsql' VOLATILE CALLED ON NULL INPUT SECURITY INVOKER;

digo yo... no deberías de hacer RETURN NEW en vez de RETURN NULL?

Cordiales saludos,

-------------------
Ever Daniel Barreto Rojas
e.mail: ebarreto(at)nexusit(dot)com(dot)py :: Nexus Information Technologies
web: www.nexusit.com.py
16/10/2007 02:52 p.m.

---------------------
"Si tu mente está vacía, está siempre lista, abierta a todo. En la
mente del aprendiz, hay muchas posibilidades; en la del experto hay
muy pocas...
Este es el secreto de la maestría del vivir: SER SIEMPRE UN APRENDIZ."
---------------------

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message MIGUEL CANCHAS 2007-10-16 19:03:04 RE: mi primer trigger
Previous Message MIGUEL CANCHAS 2007-10-16 18:36:08 mi primer trigger