Open
Description
Submitted by: Emil Totev (emilt)
Trying to retrieve an unknown context variable in the SYSTEM namespace causes an error, instead of returning NULL as stated in the release notes.
SELECT RDB$GET_CONTEXT ('SYSTEM', 'UNKNOWN') FROM RDB$DATABASE
Unsuccessful execution caused by system error that does not preclude successful execution of subsequent statements.
Context variable UNKNOWN is not found in namespace SYSTEM.
RDB$_GET_CONTEXT should return NULL for unknown variables even in the SYSTEM namespace, because different firebird versions implement different context variables (e.g. ENGINE_VERSION in 2.1), and querying for them should always be safe.