ISQLQuote vs. str subclass

From: Jonathan Rogers <jrogers(at)socialserve(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: ISQLQuote vs. str subclass
Date: 2015-07-31 14:57:37
Message-ID: 55BB8CE1.8000301@socialserve.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2015-07-31 16:08:56 Re: ISQLQuote vs. str subclass
Previous Message Vamsi Krishna Reddy -T (vamsredd - TATA CONSULTANCY SERVICES LIMITED at Cisco) 2015-07-13 14:06:41 Re: How to lock a table for update and make other connections to wait on it