The mi_trigger_name() function

The mi_trigger_name() function returns the name of the currently executing trigger.

Syntax

mi_string *mi_trigger_name(void)
Valid in client LIBMI application? Valid in user-defined routine?
No Yes

Usage

The mi_trigger_name() function queries the database server for the table on which the trigger is being is executed and returns the values of the owner name and the trigger name. This function can be called in SPL trigger functions and trigger procedures only within the triggered action list of the FOR EACH ROW clause in trigger definitions.

Return values

ownername.triggername
The name of the currently executing trigger.
NULL
The UDR is currently not executing as a part of trigger action.