Re: Server side prepared statements and executemany

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: Server side prepared statements and executemany
Дата
Msg-id CA+mi_8bQKs+MmyxMjxEnz_EMXps8huG_myNpV0b3NjC9NBiV3A@mail.gmail.com
обсуждение исходный текст
Ответ на Server side prepared statements and executemany  (Luca Ferroni <luca@befair.it>)
Ответы Re: Server side prepared statements and executemany
Список psycopg
On Fri, Nov 15, 2013 at 8:45 AM, Luca Ferroni <luca@befair.it> wrote:

> I followed Daniele's post
> http://initd.org/psycopg/articles/2012/10/01/prepared-statements-psycopg/
> and I tried his implementation
> https://gist.github.com/dvarrazzo/3797445
>
> but I have discovered that it does not work for a syntax error on $1
>
> In the doc I read that cursor.execute() prepares and executes statements.
> I take a look at the python and c code, but I didn't get where this happens.

Ciao Luca,

can you provide an example with the query you want to execute and the
error message?

Thank you.

-- Daniele


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