binds only for s,u,i,d?

Поиск
Список
Период
Сортировка
От Agent M
Тема binds only for s,u,i,d?
Дата
Msg-id ea308f57eedbeb2bb52cc60d97a7c558@themactionfaction.com
обсуждение исходный текст
Ответы Re: binds only for s,u,i,d?  (Neil Conway <neilc@samurai.com>)
Список pgsql-hackers
Why are only select, insert, update, and delete supported for $X binds?
Why can't preparation be used as a global anti-injection facility?

Example using the backend protocol for binds:
PREPARE TRANSACTION $1;
bind $1 ['text']
-->syntax error at $1

Why am I able to prepare statements with the backend protocol that I
can't prepare with PREPARE:
agentm=# prepare gonk as prepare transaction $1;
ERROR:  syntax error at or near "prepare" at character 17
LINE 1: prepare gonk as prepare transaction $1;

whereas the backend protocol only emits an error when the statement is
executed [and the binds are ignored].

-M


¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
agentm@themactionfaction.com
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Transaction and table partitioning
Следующее
От: Neil Conway
Дата:
Сообщение: system info functions