Re: [GENERAL] PL/pgSQL Function Help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] PL/pgSQL Function Help
Дата
Msg-id 25059.1136328604@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] PL/pgSQL Function Help  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> Michael Fuhr <mike@fuhr.org> writes:
>> I get an assertion failure if rec is declared as a record but not
>> if it's declared as a test_type.  And only in 8.0.5, not in 8.1.1
>> or 8.2devel.

> I find that the lack of an assertion failure in 8.1 is a happenstance of
> unrelated changes.  The problem is that plpgsql is making no effort at
> all to ensure that the record type it returns is the same as it's
> declared to return.

Patches committed to check this in 8.0 and up.  7.4 and 7.3 seem not to
have an issue.

            regards, tom lane

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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: BUG #2139: Problem when calling functions without any argument
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Small bug fix in readline promt handling