dbeaver icon indicating copy to clipboard operation
dbeaver copied to clipboard

No bind var in $$ literal

Open VASilaev opened this issue 6 months ago • 0 comments

Description

Перестала работать подстановка внешних переменных в литералы помеченный $$

DBeaver Version

Community Edition 24.1.5.202408181605

Operating System

Windows 10 x64

Database and driver

PostgreSQL JDBC Driver

Steps to reproduce

@set a = null;
do $CODE$
  begin
    :a
  end;
$CODE$ language plpgsql;

Выдает ошибку на : так как переменная :a не была заменена на значение.

В настройках выставлено рассматривать подобные литералы как код.

image

Machine translation:

Substitution of external variables into literals marked with $$ has stopped working

Returns an error for : because the variable :a has not been replaced with a value.

In the settings, it is set to treat such literals as code.

Additional context

На версии 7.2.2 работает корректно.

Also, the proposal does not work inside $$

VASilaev avatar Aug 19 '24 09:08 VASilaev