Re: to escape or not to

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: to escape or not to
Дата
Msg-id BANLkTikN0YLuJQ69vAUzOS5Jbe6dhEV09g@mail.gmail.com
обсуждение исходный текст
Ответ на to escape or not to  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Ответы Re: to escape or not to  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Список pgsql-novice
On Wed, Jun 22, 2011 at 8:49 AM, Jean-Yves F. Barbier <12ukwn@gmail.com> wrote:
> Hi list,
>
> As of '39.5: plpgsql-statements', it is said that using '$n' instead of a named
> variable is prefered and less sensitive to a SQL injection.
>
> Does it really mean if I use $n I don't have to 'quote_xxxxxx' any of these
> variables?

that is correct. (by the way, we are talking about dynamic statements
with 'execute' here).

merlin

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

Предыдущее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: change to session_user in a security definer function
Следующее
От: "Jean-Yves F. Barbier"
Дата:
Сообщение: Re: to escape or not to