Skip site navigation (1) Skip section navigation (2)

Re: [PATCH] PL/Python: Add spidata to all spiexceptions

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Oskari Saarenmaa <os(at)ohmu(dot)fi>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] PL/Python: Add spidata to all spiexceptions
Date: 2012-11-05 18:07:16
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On 05/11/12 18:35, Robert Haas wrote:
> On Wed, Oct 31, 2012 at 5:33 AM, Jan Urbański<wulczer(at)wulczer(dot)org>  wrote:
>> On 30/10/12 22:06, Oskari Saarenmaa wrote:
>>> PL/Python maps Python SPIError exceptions with 'spidata' attribute into
>>> SQL
>>> errors.
>> Here's an alternative patch that takes advantage of the already present (and
>> documented) "sqlstate" variable to set the error code when handling SPIError
>> exceptions.
>> I also used your test case and added another one, just in case.
> You should probably add this to the next CF so we don't forget about it.

I will, as soon as I recover my community account.


In response to


pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2012-11-05 18:34:04
Subject: Re: September 2012 commitfest
Previous:From: Robert HaasDate: 2012-11-05 17:35:54
Subject: Re: [PATCH] PL/Python: Add spidata to all spiexceptions

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group