Skip to content

Firebird 6.0. Requires adding SEARCH_PATH parameter to EXECUTE STATEMENT statement. #8613

Open
@sim1984

Description

@sim1984

The EXECUTE STATEMENT statement currently has the following syntax:

<execute_statement> ::=
  EXECUTE STATEMENT <argument>
    [<option> ...]
    [INTO <variables>]

<argument> ::=
    <paramless_stmt>
  | (<paramless_stmt>)
  | (<stmt_with_params>) (<param_values>)

<param_values> ::= <named_values> | <positional_values>

<named_values> ::=
    [EXCESS] paramname := <value_expr>
    [, [EXCESS] paramname := <value_expr> ...]

<positional_values> ::= <value_expr> [, <value_expr> ...]

<option> ::=
    WITH {AUTONOMOUS | COMMON} TRANSACTION
  | WITH CALLER PRIVILEGES
  | AS USER user
  | PASSWORD password
  | ROLE role
  | ON EXTERNAL [DATA SOURCE] <connect_string>

It is necessary to expand the <option> list by adding the SEARCH_PATH option to it.

This is especially useful in conjunction with the ON EXTERNAL option.

If the remote connection does not support search paths, they can simply be ignored.

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