Skip to content

Error when reading unknown SYSTEM context variable [CORE1733] #2157

Open
@firebird-automations

Description

@firebird-automations

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions