From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
---|---|
To: | "Jose Carlos Chevarria Mansilla" <jchevarria(at)yarkan(dot)com(dot)pe> |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: Ayuda con Trigger |
Date: | 2007-03-16 01:08:13 |
Message-ID: | c2d9e70e0703151808p5a7c4e89j576fb9ee6df97712@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
On 3/15/07, Jose Carlos Chevarria Mansilla <jchevarria(at)yarkan(dot)com(dot)pe> wrote:
> Redundancia ciclica. Estas volviendo a insertar un registro en la misma
> > tabla por lo tanto se vuelve a disparar el trigger.
>
>
solucion, cambia el insert por NEW.group_id = 6 y crea el trigger para
que sea BEFORE INSERT
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
From | Date | Subject | |
---|---|---|---|
Next Message | Gunnar Wolf | 2007-03-16 01:17:04 | Re: Simbolos dentro de cadenas |
Previous Message | Jaime Casanova | 2007-03-16 00:49:51 | Re: acerac de union |