R: strange characters

Поиск
Список
Период
Сортировка
От Manera, Villiam
Тема R: strange characters
Дата
Msg-id 4B0D10F422F80F479C5372363DE21FB1026A2E4D@mail2.manord.com
обсуждение исходный текст
Ответ на Re: strange characters  (Adrian Klaver <adrian.klaver@gmail.com>)
Ответы Re: R: strange characters  (Adrian Klaver <adrian.klaver@gmail.com>)
Список psycopg
Adrian wrote:
>If you are referring to the 'E' it is not strange. That is the new
Postgres
>escape identifier. The backslash escape is being phased out.

Ok, but the execute cursor will abort:
>>> cur.execute("select * from anamat.collezioni where
coll='%(coll)s'",{'coll':'1'});
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
ProgrammingError: syntax error at or near "1"
LINE 1: select * from anamat.collezioni where coll='E'1''


Villiam

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: strange characters
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: R: strange characters