Re: BUG #11094: Does not report error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #11094: Does not report error
Дата
Msg-id 14893.1406757106@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #11094: Does not report error  (henart@sofisticat.com.br)
Список pgsql-bugs
henart@sofisticat.com.br writes:
> drop type if exists tp_testes cascade;
> create type tp_testes as ( tipo integer);
> create or replace function fnc_testes() returns tp_testes as
> $$
> declare
> t tp_testes;
> x integer;
> begin
>     t.tipo = 1;
>     x = t.valor ;
>     return t;
> end;
> $$
> language plpgsql;

> the above script does not report error when compiling the function, but
> "t.valor" does not exists in type.

It's not expected to give an error; expressions are only syntax-checked
not analyzed for semantic validity.

            regards, tom lane

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

Предыдущее
От: henart@sofisticat.com.br
Дата:
Сообщение: BUG #11094: Does not report error
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: BUG #10991: psql -c ignores my pager settings in ~/.psqlrc