Re: Server side prepared statements and executemany - Mailing list psycopg

From Daniele Varrazzo
Subject Re: Server side prepared statements and executemany
Date
Msg-id CA+mi_8bQKs+MmyxMjxEnz_EMXps8huG_myNpV0b3NjC9NBiV3A@mail.gmail.com
Whole thread Raw
In response to Server side prepared statements and executemany  (Luca Ferroni <luca@befair.it>)
Responses Re: Server side prepared statements and executemany
List 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 by date:

Previous
From: Luca Ferroni
Date:
Subject: Server side prepared statements and executemany
Next
From: Luca Ferroni
Date:
Subject: Re: Server side prepared statements and executemany