logo       

Re: Re: psycopg removing the first letter of exceptions and errors: msg#00063

python.db.psycopg.devel

Subject: Re: Re: psycopg removing the first letter of exceptions and errors

Il giorno ven, 10/03/2006 alle 16.49 -0300, Jorge Godoy ha scritto:
> Federico Di Gregorio <fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx> writes:
>
> > Ehrm.. my PostgreSQL 8.1.3 does not have a "raise" command. And if that
>
> Not even inside functions? ;-)

Oh, you're right. Anyway, no error here:

$ python
Python 2.3.5 (#2, Mar 6 2006, 10:12:24)
[GCC 4.0.3 20060304 (prerelease) (Debian 4.0.2-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg2
>>> o = psycopg2.connect("dbname=test")
>>> c = o.cursor()
>>> c.execute("SELECT errortest()")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
psycopg2.ProgrammingError: Just a test

Are you running with encodings different from UTF8 and/or lc_messages
different from "C"?

--
Federico Di Gregorio http://people.initd.org/fog
Debian GNU/Linux Developer
fog-8fiUuRrzOP0dnm+yROfE0A@xxxxxxxxxxxxxxxx
INIT.D Developer
fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx
Bhoe, bhe, bhe. Sono brutto e cattivo. Brutto lama! -- Cuzco

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