Re: BUG #3116: attribute has wrong type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #3116: attribute has wrong type
Дата
Msg-id 6798.1173205306@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #3116: attribute has wrong type  ("Greg Sabino Mullane" <greg@turnstep.com>)
Ответы Re: BUG #3116: attribute has wrong type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
"Greg Sabino Mullane" <greg@turnstep.com> writes:
> CREATE OR REPLACE FUNCTION gregtest(int) RETURNS varchar
> LANGUAGE sql AS $$ SELECT 'abc'::text; $$;

Hm, I'd argue that that should be rejected.  SQL functions currently
demand exact match between the declared return type and their final
SELECT command ... wonder why this case is getting past?

            regards, tom lane

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

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: BUG #3116: attribute has wrong type
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3116: attribute has wrong type