On Thu, May 07, 2015 at 01:01:48PM +0100, Daniele Varrazzo wrote:
> > He wants to dynamically pass the table name:
> >
> > cursor.execute("SELECT * FROM %s", (table,)) # won't work
>
> Looks like there is more and more the need of exposing a function like
> libpq's PQescapeIdentifier [1]. Too bad psycopg 2.6 has been released
> so recently, I'm reluctant to add such a function to 2.6.1.
Making it available for explicit use wouldn't hurt, would it ?
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346