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

Re: PL/Python SQL error code pass-through

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Mika Eloranta <mel(at)ohmu(dot)fi>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PL/Python SQL error code pass-through
Date: 2011-11-24 08:07:02
Message-ID: 4ECDFB26.1090203@wulczer.org (view raw or flat)
Thread:
Lists: pgsql-hackers
On 23/11/11 17:24, Mika Eloranta wrote:
> Hi all,
>
> [PL/Python in 9.1 does not preserve SQLSTATE of errors]

Oops, you're right, it's a regression from 9.0 behaviour.

The fix looks good to me, I changed one place to indent with tabs 
instead of spaces and added a regression test.

I think this should be backpatched to 9.1, no?

Thanks for the report and the patch!

Cheers,
Jan

Attachment: plpython-error-passthrough-w-test.patch
Description: text/x-diff (7.0 KB)

In response to

Responses

pgsql-hackers by date

Next:From: Alexey KlyukinDate: 2011-11-24 08:22:21
Subject: Re: Notes on implementing URI syntax for libpq
Previous:From: Dmitriy IgrishinDate: 2011-11-24 07:41:08
Subject: Re: Notes on implementing URI syntax for libpq

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