ISQLQuote vs. str subclass

Поиск
Список
Период
Сортировка
От Jonathan Rogers
Тема ISQLQuote vs. str subclass
Дата
Msg-id 55BB8CE1.8000301@socialserve.com
обсуждение исходный текст
Ответы Re: ISQLQuote vs. str subclass
Список psycopg
I have a custom subclass of str called LiteralValue, the purpose of
which is to represent a string which should be passed to Postgres
unmodified. Its getquoted() method simply returns itself. This type
worked as intended with psycopg2 up to version 2.2.x. However, versions
of psycopg2 2.3 and newer no longer call getquoted() on objects of type
LiteralValue. Is this an expected change in behavior?
--
Jonathan Ross Rogers


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