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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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 Content-Type Size
plpython-error-passthrough-w-test.patch text/x-diff 7.0 KB

In response to

Responses

Browse pgsql-hackers by date

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