Re: Server side prepared statements and executemany

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Luca Ferroni <luca(at)befair(dot)it>
Cc: "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org>
Subject: Re: Server side prepared statements and executemany
Date: 2013-11-15 11:10:37
Message-ID: CA+mi_8bQKs+MmyxMjxEnz_EMXps8huG_myNpV0b3NjC9NBiV3A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Fri, Nov 15, 2013 at 8:45 AM, Luca Ferroni <luca(at)befair(dot)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

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Luca Ferroni 2013-11-15 12:34:34 Re: Server side prepared statements and executemany
Previous Message Luca Ferroni 2013-11-15 08:45:09 Server side prepared statements and executemany