get_appcontext

Returns the value of the attribute in a specified context.

get_appcontext ("context_name", "attribute_name")

Parameters

Examples

Example 1 Shows VALUE1 returned for ATTR1:

select get_appcontext ("CONTEXT1", "ATTR1")
-----------
VALUE1

Example 2 ATTR1 does not exist in CONTEXT2:

select get_appcontext("CONTEXT2", "ATTR1")
------------
NULL

Example 3 Shows the result when a user without appropriate permissions attempts to get the application context:

select get_appcontext("CONTEXT1", "ATTR2")
select permisssion denied on built-in get_appcontext, database dbid
----------
-1

Usage