ifx_get_erstate() function
The ifx_get_erstate() function indicates whether replication is enabled for the transaction in which it is run.
Syntax
Element | Purpose | Restriction |
---|---|---|
data_var | Variable to receive the value that the function returns |
Usage
Use the ifx_get_erstate() function to obtain the state of replication within a transaction. You can use the state information saved in the variable as input to the ifx_set_erstate() procedure.
Return value
A return value of 1 indicates that the current transaction is replicating data.
A return value of 0 indicates that the current transaction is not replicating data.
Example
The following example obtains the replication state and stores it in the curstate variable:
EXECUTE FUNCTION ifx_get_erstate() INTO curstate;