logo       

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

python.db.psycopg.devel

Subject: psycopg removing the first letter of exceptions and errors


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"

psycopg will raise a programming error and will give me as error message just
"rror message", with a missing "E". I've added a white space before my own
exceptions (yeah, I know, very bad of me doing that...) but I still have
problems with system errors, etc.

So... Is there something to fix this?

Psycopg2 and PostgreSQL 8.1 running on Linux.


Thanks,
--
Jorge Godoy <godoy-EkmVulN54Sk@xxxxxxxxxxxxxxxx>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.


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

News | FAQ | advertise