Re: postgresql error code

Dražen Odobašić <[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Message-ID <[email protected]>
James Henstridge wrote:
> There is a pgcode attribute on the exceptions returned by psycopg2
> which holds the SQLSTATE error code documented in the PostgreSQL
> documentation.
Thank you, pgcode attribute is what i was missing. Is this documented ? 
I could not find it anywhere...
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.