[Pljava-dev] Obtaining Query from Trigger

From: thhal at mailblocks(dot)com (Thomas Hallgren)
To:
Subject: [Pljava-dev] Obtaining Query from Trigger
Date: 2005-06-08 06:23:22
Message-ID: thhal-0XieCAwd9zjY4JTa2tMVk0FL15OVGYa@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Joao Afonso wrote:

> Hi!
>
> I started using pljava two days ago, so I apologize if this was
>already posted before.
>
> I need to get the sql query that fired a trigger on a DB so that it
>can be re-issued to another DB.
>
> For example, if 'select * from users' fired a before select trigger,
>the string with the query should be somehow passed to the java
>function that is associated to that trigger.
>
>
I hate to dissapoint you but to my knowledge a trigger is never fired
for SELECT. Only INSERT, UPDATE, and DELETE will fire triggers.

Regards,
Thomas Hallgren

In response to

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2005-06-08 06:29:04 [Pljava-dev] Re: [Fwd: Unable to load class org/postgresql/plsql/internal/Backend]
Previous Message Vince Clark 2005-06-08 01:08:58 [Pljava-dev] [Fwd: Unable to load class org/postgresql/plsql/internal/Backend]