Re: Feature branches merged to master for 2.8 release - Mailing list psycopg

From Daniele Varrazzo
Subject Re: Feature branches merged to master for 2.8 release
Date
Msg-id CA+mi_8YTPwWUdpu6uOqLuZYtgrjSQpTzU=MMJKoXYOzQvryOcw@mail.gmail.com
Whole thread Raw
In response to Re: Feature branches merged to master for 2.8 release  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
List psycopg
On Mon, Oct 15, 2018 at 6:43 PM Karsten Hilbert <Karsten.Hilbert@gmx.net> wrote:

> I would then stick with UniqueViolation.
>
> Perhaps an attribute
>
>         UniqueViolation.pg_error_name = unique_violation
>
> so people _can_ know what to grep for ?

It makes sense of course. And I was hoping it was available in the
diag object [1]. But apparently it's not... So good call: I'll try to
add it to the classes.

[1] http://initd.org/psycopg/docs/extensions.html#psycopg2.extensions.Diagnostics

-- Daniele


psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Feature branches merged to master for 2.8 release
Next
From: "Brian M Hamlin"
Date:
Subject: Python vers, was 2.8 feature branch