Re: Sanitize schema name
От | Daniele Varrazzo |
---|---|
Тема | Re: Sanitize schema name |
Дата | |
Msg-id | CA+mi_8anLX6H0ZnaH599n2TLezw5Q4dSy_v_n4Jz_CncDzMoEQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Sanitize schema name (Dorian Hoxha <dorian.hoxha@gmail.com>) |
Ответы |
Re: Sanitize schema name
Re: Sanitize schema name Re: Sanitize schema name |
Список | psycopg |
On Thu, May 7, 2015 at 12:35 PM, Dorian Hoxha <dorian.hoxha@gmail.com> 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. Maybe releasing a small Python module exposing just that function, then add the functionality to psycopg 2.7? [1] http://www.postgresql.org/docs/9.4/static/libpq-exec.html#LIBPQ-PQESCAPEIDENTIFIER -- Daniele
В списке psycopg по дате отправления: