Re: Wierd "ProgrammingError" with "E" string prefix
Tim Roberts <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <[email protected]> |
Hartmut Goebel wrote:
> While you are right for this example, it is not an solution,
> unfortunatly. The same error occurs for other qouting as this example
> shows (taken from examples/mogrify.py):
>
>
>>>> print curs.mogrify("SELECT %(foo)s AS foo", {'foo':'bar'})
>>>>
> SELECT E'bar' AS foo
>
> IMHO here the value is qouted wrong here, too.
>
What version of Python are you running? I've never seen an "E" prefix
for strings in any context. There was one PEP proposed for that, but it
was rejected. The Python 2.6 syntax reference doesn't describe this,
either.
--
Tim Roberts, [email protected]
Providenza & Boekelheide, Inc.