Re: Wierd "ProgrammingError" with "E" string prefix

Karsten Hilbert <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
On Wed, Mar 04, 2009 at 09:56:11AM -0800, Tim Roberts wrote:

> What version of Python are you running?  I've never seen an "E" prefix
> for strings in any context.
It's not Python, it is PostgreSQL, and it's *inside* the
Python string that get's sent as the query.

Maybe the server version dependant E''ing should be applied
to text types quoting only ?  But then, how can we know the
target column is going to be a text type ... Hm.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.