Re: binds only for s,u,i,d?

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: binds only for s,u,i,d?
Дата
Msg-id
87irmcoww4.fsf@stark.xeocode.com
Ответ на
Список
Дерево обсуждения
binds only for s,u,i,d? Agent M <agentm@themactionfaction.com>
Re: binds only for s,u,i,d? Neil Conway <neilc@samurai.com>
Re: binds only for s,u,i,d? Greg Stark <gsstark@mit.edu>
Re: binds only for s,u,i,d? Andrew Dunstan <andrew@dunslane.net>

Neil Conway  writes:

> On Mon, 2006-07-03 at 23:28 -0400, Agent M wrote:
> 
> > Why can't preparation be used as a global anti-injection facility?
> 
> All that work would need to be deferred to EXECUTE-time, which would largely
> defeat the purpose of server-side prepared statements, no?

It would also defeat the anti-injection purpose. If you can use parameters to
change the semantics of the query then you're not really protected any more.
The whole security advantage of using parameters comes from knowing exactly
what a query will do with the data you provide.

-- 
greg


В списке pgsql-hackers по дате отправления
От: Greg Stark
Дата:
Сообщение: Scan Keys
От: Andrew Dunstan
Дата:
Сообщение: Re: binds only for s,u,i,d?
FAQ