Re: PL/Python SQL error code pass-through

Jan Urbański <wulczer@wulczer.org>

From: Jan Urbański <wulczer@wulczer.org>
To: Mika Eloranta <mel@ohmu.fi>
Cc: pgsql-hackers@postgresql.org
Date: 2011-11-24T08:07:02Z
Lists: pgsql-hackers

Attachments

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