Fetch query which triggered a rule

Started by Jonatan Evald Buusover 17 years ago1 messagesgeneral
Jump to latest
#1Jonatan Evald Buus
jonatan.buus@cellpointmobile.com

Greetings,
Is it possible to fetch the query which triggered a rule?

I.e. suppose I create the following rule:
CREATE RULE MyRule AS ON Select TO MyTable_Tbl DO INSTEAD
process_query($sql);

Where $sql represents the query which triggered the rule.

Appreciate the input

Cheers
Jona