Implementation of SQLSTATE and SQLERRM variables - Mailing list pgsql-patches

From Pavel Stehule
Subject Implementation of SQLSTATE and SQLERRM variables
Date
Msg-id Pine.LNX.4.44.0504191534070.3352-200000@kix.fsv.cvut.cz
Whole thread Raw
Responses Re: Implementation of SQLSTATE and SQLERRM variables
Re: Implementation of SQLSTATE and SQLERRM variables
List pgsql-patches
Hello,

I updated patch to last changes plpgsql code. Patch contains changes for
gram.y, pl_exec.c, plpgsql.h, regress/sql/plpgsql.sql and
regress/output/plpgsql.out. I can't to write documenation, my english is
terrible.

This patch is implementation of variables SQLERRM and SQLSTATE for plpgsql
language. Variable SQLSTATE contains five chars PostgreSQL Error Code,
SQLERRM contains relevant message last catched exception. All variables
are attached to plpgsql_block and have local scope. Default values are
'00000' for SQLSTATE and 'Sucessful completion' for SQLERRM.

Best regards
Pavel Stehule

Attachment

pgsql-patches by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [HACKERS] Implementation of SQLCODE and SQLERRM
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables