Re: [psycopg] Solving the SQL composition problem

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: [psycopg] Solving the SQL composition problem
Дата
Msg-id 0A40E4F5-C5D4-480D-BD90-40BC1253278C@thebuild.com
обсуждение исходный текст
Ответ на Re: [psycopg] Solving the SQL composition problem  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список psycopg
> On Jan 3, 2017, at 08:24, Jim Nasby <Jim.Nasby@BlueTreble.com> wrote:
> What I'm suggesting is to let Postgres handle the replacement of normal values, using the prepared statement syntax
of$1, $2, etc[1], and only do identifier replacement in python (using quote_ident).  

If this is practical, I'd be very much in favor of it, for the reasons given.

--
-- Christophe Pettus
   xof@thebuild.com



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

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: [psycopg] Solving the SQL composition problem
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: [psycopg] Solving the SQL composition problem