Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables for

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables for
Дата
Msg-id Pine.LNX.4.44.0503081003370.13222-400000@kix.fsv.cvut.cz
обсуждение исходный текст
Ответ на Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables for  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Ответы Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables
Re: [HACKERS] Implementation of SQLCODE and SQLERRM variables
Список pgsql-patches
Hello,

I changed code by your and Neil's notes. The name SQLCODE isn't well,
better is SQLSTATE. It's very similar DB2 variable. I am not sure, so my
solutions is best. Propably not. It's only particular solution for
plpgsql. The files plpgsql.sql and plpgsql.out are diffs for regression
tests.

 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.

Regards

Pavel Stehule


Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: [HACKERS] Best practices: MERGE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Display Pg buffer cache (WIP)