20.22 GET_DML_STATUS_CODE Function

This function returns the SQL status code of the last context execution, for the current row. For local or remote SQL contexts, the ORA error code will be returned in case of an error, NULL in case of success.

For REST Data Source contexts, the function returns the HTTP status code.

Syntax

FUNCTION GET_DML_STATUS_CODE (
    p_context               IN t_context )
    RETURN NUMBER;

Parameters

Table 20-20 GET_DML_STATUS_CODE Function Parameters

Parameter Description
p_context Context object obtained with one of the OPEN_ functions.

Returns

The DML status code of the current row.