On Sun, Jan 23, 2011 at 5:17 PM, Carl S. Yestrau Jr.
> It does work, using this branch, thank you.
This will likely be included in the next release.
> One observation, the string returned is of type str, not unicode.
> import psycopg2
> adapted = psycopg2.extensions.adapt(u'test')
> print adapted.getquoted()
> #<type 'str'>
Yes, this is what expected. Adaptation is taking a Python object and
converting it into a SQL representation: this is always a bytes
string, as it has to be sent to the socket.
In response to
psycopg by date
|Next:||From: Nicolas Grilly||Date: 2011-02-01 10:24:33|
|Subject: copy_from does not stop reading after an error|
|Previous:||From: Daniele Varrazzo||Date: 2011-01-24 00:30:58|
|Subject: Re: Psycopg porting to Python3: a report|