Re: Feature branches merged to master for 2.8 release

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: psycopg(at)lists(dot)postgresql(dot)org, psycopg(at)postgresql(dot)org
Subject: Re: Feature branches merged to master for 2.8 release
Date: 2018-10-15 18:16:27
Message-ID: CA+mi_8YTPwWUdpu6uOqLuZYtgrjSQpTzU=MMJKoXYOzQvryOcw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, Oct 15, 2018 at 6:43 PM Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)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

In response to

Browse psycopg by date

  From Date Subject
Next Message Brian M Hamlin 2018-10-15 18:22:15 Python vers, was 2.8 feature branch
Previous Message Daniele Varrazzo 2018-10-15 18:09:10 Re: Feature branches merged to master for 2.8 release