Re: Confusion over Python drivers

Поиск
Список
Период
Сортировка
От Andrew McNamara
Тема Re: Confusion over Python drivers
Дата
Msg-id 20100211060408.C569F2365B@longblack.object-craft.com.au
обсуждение исходный текст
Ответ на Re: Confusion over Python drivers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>> I'd like to see a requirement for the use of PQexecParams() over PQexec() - 
>> even when using libpq's PQescapeStringConn(), PQexec() makes me uneasy.
>
>Such a rule seems pretty entirely pointless, unless you have a way to
>enforce that the query string passed to the function hasn't been
>assembled from parts somewhere along the way.

The point is that if the driver is doing the right thing, the user of
the driver at least has to choice to do things safely.

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/


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

Предыдущее
От: Greg Smith
Дата:
Сообщение: Re: Confusion over Python drivers {license}
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: knngist patch support