Re: Can we use sqlcode in functions of plpgsql

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Can we use sqlcode in functions of plpgsql
Дата
Msg-id CAFj8pRB9o06vzWwaQV93k--Q8+vvhHjoZKH9ckmq_WROmSAbKA@mail.gmail.com
обсуждение исходный текст
Ответ на Can we use sqlcode in functions of plpgsql  (tushar nehete <tpnehete@gmail.com>)
Список pgsql-general
Hello

2011/10/7 tushar nehete <tpnehete@gmail.com>:
> Hi,
> For backward compatibility and some other reasons we want to use
> SQLCODE in our functions of PLPGSQL.
> But in Postgres Server 9.0 it gives error for SQLCODE.
> Is there any way to use SQLCODE in functions of PLPGSQL at the place of
> SQLSTATE?

you can hack PL/pgSQL source code. There are no other way

> Also what is the datatype of SQLSTATE?

char(5)

Regards

Pavel Stehule
>
>

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

Предыдущее
От: Vincent de Phily
Дата:
Сообщение: Re: Never-idle autovacuum, and does (auto)vacuuming fill the OS cache ?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: In which case PG_VERSION file updates ?