logo       

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

python.db.psycopg.devel

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

On Friday 10 March 2006 11:42 am, Federico Di Gregorio wrote:
> Il giorno ven, 10/03/2006 alle 15.57 -0300, Jorge Godoy ha scritto:
> > Hi!
> >
> > I dunno if this is known or if there's some ticket about it, but is there
> > something that can be done to avoid psycopg from "eating" the first
> > letter of exceptions and errors from the database?
> >
> > For example, if I have some trigger or function doing
> >
> > raise "Error message"
>
> Ehrm.. my PostgreSQL 8.1.3 does not have a "raise" command. And if that
> "raise" is the Pythonic one I don't see how can psycopg eat the first
> letter of something that happens entirely outside of the driver.
>
> federico

I believe Jorge is talking about the following:
http://www.postgresql.org/docs/8.1/interactive/plpgsql-errors-and-messages.html
--
Adrian Klaver
aklaver-Wuw85uim5zDR7s880joybQ@xxxxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise