Re: BUG #16519: SET SESSION ROLE in plpgsql requires string literal.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16519: SET SESSION ROLE in plpgsql requires string literal.
Дата
Msg-id 491240.1593537537@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #16519: SET SESSION ROLE in plpgsql requires string literal.  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: BUG #16519: SET SESSION ROLE in plpgsql requires string literal.  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> The SET command cannot be parameterized so using variables in the statement
> is not supported and the attempt to do so is treated as writing an
> identifier.  You will need to use the format function and the execute
> plpgsql command to create and execute the statement.

While this is documented (last para of "42.11.1. Variable Substitution"),
it's not exactly prominent.  Should we move that to somewhere more
visible?  If so where?

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Jehan-Guillaume de Rorthais
Дата:
Сообщение: Re: [BUG][PATCH] ecpg crash with bytea type and cursors
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [BUG][PATCH] ecpg crash with bytea type and cursors