logo       

Re: query: msg#00091

python.db.psycopg.devel

Subject: Re: query

Il giorno mar, 21/03/2006 alle 23.32 +1000, Timothy Smith ha scritto:
> ok i've had some more time to play, and it's wierd, the above code
> SHOULD work. from the python commandline i did something similar from
> the python command line and it worked perfectly. it has to be the error
> psycopg2.InterfaceError: can't encode unicode string to latin-1 which
> prevents psycopg from quoting my queries properly. the question is how
> do i fix it? i'm using python 2.4 and wxpython 2.6.2 in my application

This resembles another similar problem that I never solved, related to
wxPython. Can you please send me the shortest possible program that
fails this way? (Including db schema, test data and everything else).
Maybe with a failing program to analize I'd be able to fix this or at
least understand what's happening.

federico

--
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer
fog-8fiUuRrzOP0dnm+yROfE0A@xxxxxxxxxxxxxxxx
INIT.D Developer
fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx
There are 10 types of people in this world, those that understand
binary, and those that don't. -- Michael Gittelsohn

Attachment: signature.asc
Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/+sw@xxxxxxxxxxxxxxxx
http://lists.initd.org/mailman/listinfo/psycopg
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise